Theoretically this is exactly the justification political mobs on twitter use to go after bad behavior that to them feels morally wrong.
I think it’s one of the only ways to change society but it should be done with a light touch. With smoking I think people thought “it’s gross” not that you are a gross and morally repugnant person. So demonizing the act and not the person is important.
Granted if people are not using social media the mobs will be smaller, but even if everyone is in communities the size of HN, it’s still possible to form “mob sentiment”