Simply put, yes. Trees absorb CO2 via photosynthesis, which is the act of converting inorganic compounds into fuel for living organisms and provides energy for plants to live and grow.  Trees absorb light into their leaves, draw up water through their root system and take in carbon dioxide through the tiny holes in their leaves while putting out oxygen - essentially, they recycle the air.