Yes, you need to turn off the power to replace a thermostat as it involves dealing with gas or electricity.