The second law of thermodynamics implies that one must spend energy as work to move thermal energy up a temperature difference. So the net effect of an air conditioner is to increase the total amount of thermal energy.