Contract to hire has several risk factors involved.
First, you may get no benefits or reduced benefits. Sometimes the hourly rate is increased to allow you to pay for your own health insurance. This means the eventual offer from the company for a permananet postion may involve a lower pay rate than you get as a contractor. You may not get paid holidays or fewer holidays than the permanent employees get.
Second, you need to be able to impress the company fairly quickly to be converted. So this type of hiring is often not a good idea for someone inexperienced and is much riskier for them than for someone experienced enough and capable enough to produce good to excellent results in less than 3 months. If you are not already an excellent performer, the job becomes much riskier.
Third, contract employess at many businesses are treated worse than regular employees. Be prepared for people to not bother to learn your name, for instance, until you are brought on board for real. You may also be assigned to worse work spaces.
Fourth, these things take time and things can change for the company in the meantime. Sometimes the three months stretches to 9 or 10. Sometimes the funding for any new permanent hires disappears especially if it is the government. Sometimes the whole project is killed. Be prepared to pay for your own benefits for longer than you estimated.
All that said, you have to evaluate the risks for yourself. Balance the risks against your current situtation. Remember nothing will keep you from looking at other positions during the contract period. Many people do successfully get hired in a contract to hire situation. And sometimes it is the only way to get hired in a particular company you may want to work for.