Carbon dioxide is considered a greenhouse gas that affects the Earth's atmosphere by causing global warming. This occurs through the emission of carbon dioxide into the atmosphere.
So, CO2 heats the atmosphere.
Earth’s sister planet, Venus, is a good example of what may happen is there will be too much CO2 in the atmosphere.
I hope I answered your question correctly! Good luck!