It can be true, but usually not for AC units, as these are quite effective at only heating/cooling the ambient air and not the walls, ceiling etc.
Regular heating can waste a lot of energy to heat the entire structure of the house, especially if you have thick walls, so it does more make sense to try and keep the temperature stable.