Yes and trees only store CO2 while they are alive. Once they die and rot, it's released back into the environment.
Also monocultures with fast groing trees that ideally can be harvested come with their own problems.
Planting trees is good way to do something now, but it's not going to solve the problem forever.