In theory, incarceration is supposed to deter people from committing further crimes.