Yes, all central ACs have heat exchangers located in the outdoor compressor, which consists of refrigerant-filled coils. As the warm indoor air passes over these coils, the refrigerant traps the heat to cool down the air, which is then distributed in the room.
Meanwhile, the trapped heat travels to the outdoor unit and is released, which is why outdoor compressors release hot air.