In SFF terms, it does really depend on what you mean. I think you have to separate the work from the writer: George R.R. Martin is pretty liberal and progressive but his books feature sexual assault, murder and treachery. However, he is careful to present these as bad things that are not to be lauded and are to be fought against. I've seen people call his books non-PC and rage over them and I've seen other people call them ridiculously liberal and getting angry with the "feminist agenda" that has seen the female characters gain prominence (even dominance) by the fifth novel (and sixth season of the TV show).
You also have someone like Scott Bakker with his Second Apocalypse series, which features enormous amounts of sexual assault and only a small number of female characters of note. This is because the world is presented as corrupt, amoral and even evil, and the protagonist begins "healing" the world, giving more power and rights to women as the series progresses, but only due to an amoral and uncaring desire to use all available assets to save the world from destruction. By the end of the sixth volume, arguably the most important and powerful character in the book is female (MRAs, who previously lauded the series by misreading it as some kind of misogynistic power-fantasy, were predictably upset). The series is immensely "problematic" on this basis, as those who criticise it as misogynistic and those who laud it as liberal are both kind of right and both kind of wrong.
With regards to the "writers of their time" argument, it is something to bear in mind. Robert E. Howard, for example, is often described as having a troubling attitude to women and black people. However, his calling black people "negroes" was widespread in Texas at the time. He actually has black characters in the stories helping Conan and being allies (such as Belit's pirate crew, although Belit herself - rather ludicrously given she's from Shem, a far southern country in what is now Africa - is white), although also as "savage" enemies, and of course never presented as Conan's equal in battle. Many of his female characters are presented as weak and simpering, but there are a few who are stronger and fight alongside Conan (such as Belit) and even save his life. Howard himself had a very strong bond with his mother - killing himself when he learned she had a terminal illness - and I think that colours his odd attitude to women in the books, putting them on pedestals to be rescued and adored, but also occasionally being strong, domineering figures.
Lovecraft, on the other hand, was an actual white supremacist and despised black (and most non-white) people, writing at length on the subject and treating them disparagingly in his stories to a degree that was certainly far higher and more prevalent than Howard. He even deigned to marry his wife, who was Jewish, only after judging that she was "well assimilated". He was, basically, an arsehole. It's up to the reader if that colours the reading of his stories.
J.R.R. Tolkien, born two years after Lovecraft and fourteen years before Howard, despised apartheid in South Africa (where he was born), had a fascination for non-Anglo cultures, wrote a searing letter to a German publisher inquiring about any possible Jewish ancestry when they were assessing The Hobbit for publication in the 1930s (telling them he'd have been honoured to have been part of that religion and rich culture and to take their prejudices and shove them where the sun didn't shine, in more polite terms) and spent considerable time after writing The Lord of the Rings feeling guilty that the only black people in it had been bad guys serving Sauron and that he had characterised the entire orc race as evil and irredeemable, which he realised (belatedly) conflicted with his Catholic outlook. So the "product of their times" argument is less convincing because you do have people like Tolkien (and, earlier, Swift and Tolstoy) who did overcome the dominant prejudices of the day.