Yeah, I agree with this.
Seriously, if someone went out on the street and started saying racist things loud enough for other people to hear, you'd expect something bad to go that person's way, right? Posting things on the internet that other people can read is a lot like that. Sure, you're not saying anything offensive to someone specific, but other people can hear/see it regardless of who you're talking to. And posting something on the internet is permanent, too.
If you say something publicly and permanently, expect there to be consequences. And there should be consequences. If you're going to say something shitty, keep it to yourself unless you want other people to read/hear it. It's common sense.