That's very old fashioned thinking, proven to not only fail but achieve the opposite.
It's what lead to our prison population multiplying eight times from a relatively stable 11,000 to peak at 88,000, coupled with a very large increase in crimes. That happened in less than half of my lifetime...