Thermostat or No Thermostat?

A mere thermostat change cured my severely overheating 340 even though the previous thermostat had only been in the car for about 300 miles.
Yote