In Afghanistan? Yes we did, in a sense.
Yes, in a perhaps misguided way.
There was (and continues to be) this idea that the United States stands for something that the rest of the world wants. Freedom, liberty, democracy, all that good stuff. And there's this idea that if we can just free foreign peoples from local tyrannies, then they will eagerly grasp those things.
So we barge into places like Iraq and Afghanistan, overthrow the local tyrants and expect the locals to seize the opportunity and establish a strong functioning democracy. We think that we are
nation building, that it's a good thing and that the locals will welcome it.
Except over and over again, they don't.
The locals just divide up according to their ethnic, religious or political divisions and set about settling scores and trying to suppress rivals. And then everything falls apart and it's survival-of-the-fittest time.
So yes, we were the 'good guys' in that our motivations were good.
We were even the 'good guys' in that we gave Afghanistan a twenty year chance to make something more of themselves.
But the whole effort was flawed from the very beginning by the unrealistic "nation-building" ideology.