Absolutely, historical context is crucial when analyzing any event or policy, including Apartheid. The geopolitical and moral climate of the time certainly influenced the decision-making of those who instituted and supported Apartheid.
In the mid-20th century, racial segregation and discrimination were, unfortunately, common in many parts of the world. In the United States, for instance, the Jim Crow laws enforcing racial segregation were still in place. European colonial powers still controlled vast territories around the world, often based on notions of racial and cultural superiority.
These global attitudes could have contributed to the acceptance or even the justification of Apartheid within South Africa and potentially even internationally, at least initially. It is important to remember, however, that even at the time, there was significant opposition to Apartheid from many quarters, both within South Africa and globally. The United Nations and many countries condemned the Apartheid policy as a violation of human rights.
Understanding the historical context is key to understanding why Apartheid was implemented and how it was able to persist for as long as it did. However, this context doesn't justify or excuse the system's inherent injustice and harm.