Yes, look up the Coefficient of Performance:
https://en.wikipedia.org/wiki/Heat_pump#Performance_consider...A typical AC can take 1 kW of input power and remove ~3kW of heat energy from the room. The outdoor part of this system is heated by 4 kW, because you put the high-power stuff outside, where it's unimportant to performance. You can't thermondynamically make an AC work if it's purely in the room.
With resistive electric heating, you put in 1 kW of heat and the room temperature increases by 1 kW of heat energy.
With a heat pump in heating mode, you can put the inefficiency to use, using a 1 kW input to extract 3 kW of energy from, say, the ground, and putting 4 kW of energy into the room.
Two main problems with the argument: Cooling, as you say, is typically 30->25. Heating is often 0-25, requiring 5 times more energy (though we should be doing this in Kelvin...) Second, heating is super easy to do thermodynamically by just burning dirt-cheap natural gas. For a Michigan anecdote, I paid about $150/mo to keep my house cool in July, and it's typically $100 to keep my house warm in January.