Yes. A heat pump cools in summer the same way a central air conditioner does, by moving heat out of the building. Replacing an aging air conditioner with a heat pump adds winter heating without a second outdoor unit.