This is true for basically every human endeavor.
As noted by others, this isn't entirely cost-free, and there are ecological impacts. Still, on net, many dams do provide real benefits.
Having said that, merely hoping that people will make significant changes in their lifestyle for indirect and abstract benefits is simply burying one’s head in the sand with a rationalization that makes them feel good. The population is growing, and we will either innovate our way out of this, or it’s famine/war/etc.
Edit: go into /r/environment on Reddit and suggest people eat a lot less meat and see how quickly it’s downvoted into oblivion. And those are the people who actively care!
I don't think that really works any more than the "look I'm killing the cows" argument. If they have to throw away packages each week, they'll buy less in the future, which in turn leads to lower production.
In general it's better to be accurate about cause and effect and then choose what to do. That way you can make sure the way you're measuring "good" is real.