Not sure it would actually deter them that much, but I'm all for it.
Less scum on the streets has to be a good thing!
Admittedly it costs to keep ciminals locked up, but at least they wouldn't be claiming benefits/nicking stuff/ruining other peoples' lives!