Temp to hire jobs?

I got offered a job that’s a temp to hire but they say they’re looking for someone permanent. Is it a bad idea to choose a temp to hire job?