Not really it depends if it was socially seen that way at the time.
Take slavery antiquity slavery was seen at the time akin to modern day pet ownership or having servants. In ancient times one wasn't judge for having slaves but how they treated them. Famously Augustus once got angry at a man who home he was at for a banquet because the man wanted to kill a slave over accidently breaking a glass. Many in antiquity also knew for the graces of the gods go I when it came to slavery if on the bad end of conquest who would likely end up a slave.
Now vs this to American Slavery from its inception slavery was already going by the wayside in Western Culture and was being replaced with Serfdom or also known as Slavery Lite. So how do you justify American Slavery back then? Well, you claim the slaves are "Godless Savages" and thus you're "civilizing" them and bringing them closer to God. This is why some American Slave owners took a "Parental" view to owning slaves while others went into the opposite direction. Once you label someone "Godless Savages" it dehumanizes them and allows you to treat them as you see fit this is a reason American Slave owners were usually far more brutal than slave owners of Antiquity outside of slaves used for gladiatorial games or hard labor. But as I mentioned slavery was going out of vogue even at the inception of American Slavery and thus there was always a vocal Anti-Slavery coalition. Meaning even then American Slavery was seen as wrong and thus we view rightfully view it much more harshly than Antiquity Slavery.
Honestly up until the Baby Boom generation most white held some beliefs of white supremacy even the great generation who fought the Nazis would mostly casually use the N Word. It wasn't right but it wasn't always done in hate sometimes it was just because that was what they were taught to call African Americans. Until 1973 the APA listed Homosexuality a mental illness in that environment, I'd be more understanding of someone being homophobic then vs today they were literally being taught it was a sickness. TOS was woke for its time doesn't stop it from having problematic episodes by our standards. Does everything deserve a pass? No but we also shouldn't just judge past generations strictly by our modern morality and sensibilities. Because no matter how liberal someone is today, I guarantee their grandchildren or great-grandchildren will find some of their views from today embarrassing if not full out ignorant. Because we evolve as we grow as a species and should remember that when looking at those from our past.