Sure, but that's within safe harbor rules. If they went and moderated content and comments in a non-reactive way, say by banning commenters whose opinions they found incorrect, that would be legal but could jeopardize their safe harbor status.
And as it states there, they also have censorship based on their terms of service, where they prohibit the posting of videos which violate copyrights or depict pornography, illegal acts, gratuitous violence, or hate speech.