Yes, plants absorb carbon dioxide from the atmosphere for photosynthesis. Deforestation results in decreased number of trees leading to accumulation of carbon dioxide in the atmosphere. Carbon dioxide in the atmosphere traps heat reflected by the earth which results in global warming.