Sure, but ideally the function of the state is prevent the formation of senseless mobs through even-handed treatment and a well-functioning justice system. When it fails to meet those expectations, people turn to other means to defend themselves and enact retribution.
This is human nature and the entire story of our history. Aeschylus even wrote about it:
https://en.m.wikipedia.org/wiki/Oresteia