It isn't really viable as a carbon capture measure, and there's been a lot of research in recent years to show that decades of tree planting campaigns across the world have very often failed outright or--in some cases--been a net negative to communities, ecosystems and forest coverage, and/or atmospheric carbon levels.
Saplings are cheap. That's why planting trees is such an appealing "solution." All of the math is based on the assumption that the saplings survive until they can mature and start sucking in carbon. Most don't; one study found mean mortality rates of 44% after five years over 176 sites in tropical and sub-tropical Asia[0]. A Turkish effort saw over 90% of 11 million trees dead in under a year.[1] Other studies have found similarly horrible numbers, and that's not including the other ways[2] such projects can fail: degradation of grassland ecosystems that were already highly effective carbon sinks[3], decreased biodiversity, increased fire risks with non-native saplings, cultural and economic losses, etc.
There are wildly successful reforestation projects, but they take considerably more investment, local community support, and active long-term monitoring and intervention.[4] All of which undercut what originally made mass tree planting so appealing as a climate solution: the seemingly cheap cost.
We absolutely need to plant trees, both in urban environments because the quality of life benefits of urban trees are so numerous that it's an absolute no-brainer and as part of wider reforestation efforts, but it's never going to be a silver bullet for climate change. It's just one of many, many things we need to do.
0. https://royalsocietypublishing.org/doi/10.1098/rstb.2021.009...
1. https://www.theguardian.com/world/2020/jan/30/most-of-11m-tr...
2. https://www.vox.com/down-to-earth/22679378/tree-planting-for...
3. https://www.vox.com/down-to-earth/22662490/grasslands-better...
4. https://www.science.org/content/article/reforestation-means-...