The water heater won't turn off by itself if it does not have that feature. But the water inside won't overheat due to the thermostat. The thermostat will cut off the power to the heating element, and that is why water won't get overheated.