Yes, but: Was James Bond raping a lesbian (I am not sure if that was the same scene as where he raped a victim of sex trafficking, or if he did that sort of thing twice or more often ... not a fan, I only know Bond through popcultural osmosis and perhaps one movie) values dissonance or protagonist centred morality, or something else?
I am pretty sure that, had a villain done the same thing, it would have been portrayed as evil, even at the time and with the values dissonance in play.