Indeed, an organism can only survive long enough if it can resist infection. For this, an organization should be openly hostile to certain forms of conduct, and should have a way to expel people who bring in wrong values, especially in management.
This is a really hard problem, due to its influence on the morale, and the danger of weaponization of these mechanisms by bad actors.
The migration of shitheads from Wall Street 80s 90s to Silicon Valley - technobros is for me a solid example of this.