Does being tough on crime actually deter crime?

Crime is reduced while convicts are in prison but not after they're out.