Sure. A heat pump only needs to be 170% efficient to make back the generation losses. As for infrastructure losses, natural gas distribution has leaks as well.
Also, if the power plant is integrated into a CHP system to heat nearby households then generation gets back some percent.