There were public beheadings for hundreds of years in countries around the world. As far as I can tell this crap hasn’t stopped. It is good for entertainment purposes but not much of a deterrent.
It deters at least one person- the headless guy. That’s a win-win if you ask me.
CC