Doesn't quite happen like this, but a fun way to remember it!
Check out this vid - great information about CO2 and greenhouse gases in our atmosphere.
Carbon Dioxide is a greenhouse gas. These gases in the atmosphere keep the planet comfortably warm. Human activities are producing more greenhouse gases which pollute the atmosphere. This is causing the enhanced greenhouse effect and seems to be leading to global warming.
The greenhouse effect & global warming are not the same thing. Global warming refers to a rise in the temperature of the surface of the Earth. An increase in the concentration of greenhouse gases leads to an increase in the magnitude of the greenhouse effect (called enhanced greenhouse effect). This results in global warming.