Longer pipe runs mean potential heat losses or more points where something can go wrong. If the hot water tank is located in a cooler room, that also means more heat loss. But in principle, it is possible.
Understood. Thank you very much for your answers! What would I clueless person do without the forum? They could build the heating in the living room and make me believe that it was a good idea.