I find it ethically very dubious. Certainly many people committing atrocities have been "going along with the flow" of their own local environments.
Bartolomé de las Casas, Martin Luther King Jr., Gandhi etc, all of these people are looked back upon with great respect because of their morality - but the truth is that none of them would seem like morally great people today. They stand out because they pushed further on certain issues compared to their contemporaries, not because their thoughts and actions would stand out compared to ours (other than that they would seem very backwards and immoral concerning a lot of things).
Thereby making them immoral by their own standards. You cannot export your sense of locality to somewhere else, i dont think thats how it works.
If you look at the contemporaries of the British Empire they do not stand out as exceptional either good or bad morally. Meanwhile, if you compare the Nazis to their contemporaries they do however stand out (though not nearly as some people might think).
To me it seems rather cruel and unfair to label someone or something as "immoral" if they are acting within the limits of accepted and expected behaviour in their environment.