It goes both ways. Learning to live on a dead world like Mars (or better yet, off-world altogether) will necessarily entail significant improvements in recycling, atmospheric control, and energy management. Those same technologies could be critical to reversing the damage we've done to our homeworld and enabling us to live on it sustainably.