If only that were the case.
[1] Judge says: "If you commit another crime or are found in violation of your parole you will go to prison for X months longer".
It's a simple analogy that ignores a lot of extrinsic issues, but punishment isn't always a sufficient deterrent.