Yes, in the Soviet Union, hot water was a byproduct of production of electricity - using combined heat and power, it was a waste heat. And it used lots of electricity to make weapons to advance dictatorship of proletariat, so there was plenty of free heat, too.