Crime commitment

Do prisons stop people from committing crime?