Some forms of punishment are more of a deterrent. For example, I have heard the theory that a day in the stocks would deter most drunk drvers!