“The ends justify the means” is pretty central to all variants of socialism.
This is how a society tells itself that exterminating the Jews is OK — after all, you’re just trying to purify the continent, and who could be against that????
Mao starved over 50 million Chinese — but it was OK: he needed to make a Great Leap Forward.
This is what they mean when they emphasize the importance of being “morally right”.
If the ends justify the means, then the means, themselves, become the end.
Sustainability.