What happens when good people are put into an evil place? Do they triumph or does the situation dominate their past history and morality?

What happens when good people are put into an evil place? Do they triumph or does the situation dominate their past history and morality?