If you clear the code and it comes back within minutes, it's not going to be a thermostat itself. Because it's just a piece of metal with a spring.

Does this code come back right away or does it take a while when you drive it??

A P0128 is the more common failed thermostat code for sticking open.