John, I have done it when the panel is with in sight of the water heater, as a matter of fact, my own house is done this way.

Panel and water heater are both in the basement.

Roger