It's up to you but consider your financial commitments as a priority (you need food and shelter at a minimum). Could you manage after, if the three months turned out to be just that - three months? If so, you might be better to take the risk and go with the short-term contract as it may, just may open other doors but if you need security you might be best to take the permanent post while looking for longer term research work.