Carol Marcus in her underwear was staged to be titillating, and both JJ Abrams and Damon Lindelof have admitted this. But any claim that there was no purpose for her to strip down to her underwear wasn't paying attention. She was changing clothes.
The camera was just following Kirk's lead in staring inappropriately while she was between outfits.
And the scene successfully conveys the inappropriateness of his actions--thus criticizing the actions in question. And titillation is not evil in and of itself. Nor is it going to disappear anytime soon.