Would the cultivating crops and plants or the making green areas on the roof or the top of buildings bring about mitigating climate change effects?

there is an idea to solve the latent heat problem, planting some plants on the roof of buildings. But, for the plants, those environments would be challenging. What do you think? would it be helpful to mitigate the effects of climate change? would it be a sustainable solution in a way?