If you were trying to cool a room like with an air conditioner, yes. Heat pumps literally work in reverse, bringing heat in more efficiently than any resistive heater. They output more heat energy than they use, as they are moving heat, not generating it.
Isn't that a bit backward? Compress in the cooler area, radiate heat, bring it inside and expand, absorb heat, then carry it outside.
save