Counterpoint: Detroit. It's jam-packed with trees and gun violence. Maybe planting trees where they weren't correlates with improvement, but I seriously doubt trees are causal to peace.
Trees sure aren't enough if they're surrounded by vacant lots and abandoned houses. You can't fix everything with landscaping, but improving areas into nice communities that are more in line with the rest of the city goes a long way.