Water heater question

Do I need to turn off the main water if I'm just re-doing the outlet water pipes from the water heater?