Shockingly that is pretty much how heat pumps work to a first degree (oh the pun), they don't much care which side is the evaporator and which side is the condenser. There are minor details in size of fan and design of coil vs tolerable noise level vs quality of insulation on connecting pipes. Also the pressure vs temp graphs are a little non-linear which does show up at the extremes (and the extremes are a small fraction of total operational time)
In the west most cooling is done with a heat pump permanently wired into refrigeration mode aka a conventional air conditioner. There's a widely held belief that the entire system coefficient of performance is exactly 1 with somewhat less popular urban legends claiming a small fraction of 1 or only analyzing 100% efficient theoretical gas table cycles of 30 or whatever. However real world deployed average systems including air handler (aka fan) power and a realistic depreciation or embedded energy of manufacture etc results in about 3. So in the real world the total cost to the environment is about a kilowatt/hr to move about 3 kilowatt/hr of heat out of a building. It scales better than linear with size, something to do with moving air being expensive and larger AC being connected to larger buildings having a better surface area to volume ratio.
Anyway for better or worse a kilowatt into an electric heater costs 3 KW of burned coal or uranium down at the plant and generates about 1 KW of heating in a typical building, whereas a kilowatt into an AC or heat pump costs 3 KW of burned coal or uranium down at the plant and moves about 3 KW of heat out of the building.
In practice it takes less energy to cool than to heat although in theory a heat pump has difficulty telling the difference between 90F outdoor and 50F outdoor temps.