Propane or Natural Gas yes do it.
Electric - I do not recommend. I have 2. One in the cabin and one in the barn. Both do well enough to make do.
Winter time temps keep them from getting the water hot enough. I am in Tennessee. Our ground water is quite a bit warmer to start with.