No. You just have half the story. Plants are filled with carbon.. obtained from CO2. When a plant dies or loses its leaves or bark or whatever, the subsequent decay process releases that carbon back into the atmosphere as CO2. Same with animals. If there isn't oxygen about the end product is Methane.