Not necessarily. If the aircon is run from solar (and you don't waste it by opening windows at the same time hence cooling the outside) then it's not necessarily contributing to global warming.
One problem is slightly narrow minded thinking whereby you are encouraged to install heat pumps ( instead of gas boilers ) to run water based central heating (radiators) whereas with an ir to air heat pump it's also aircon.
And, when you need air cooling it is at the best time for solar generation. So provided your aircon / heat pump is driven from solar, you are actually helping the planet.
There are also some great ventilation system that are integrated. For example solar panels generate heat beneath the panels. There are systems that connect this to ducts so that the excess heat draws cooler air up from below ground level into the building. Genius.