No you can't as it is impossible, but you can certainly bring down the number of repeat offenders through rehabilitation as clearly shown in my above post. However prison is just one of the factors in the system. In America it is a cash cow that's why so many people are incarcerated without access to proper representation and once a person is a part of that system it is very hard to get out.
It is the same in many other countries where first time offenders of very minor offences are incarcerated and they come out much worse when they went in. I know because I was also incarcerated.
We as civilized people should look to understand the various reasons behind various crimes committed as nothing is ever black and white and then try to help, re educate and rehabilitate the person accordingly. Not to mention just start by providing basic human rights in many countries. Not everyone can be rehabilitated and the majority can be.
This eye for an eye mob mentality will get us nowhere and that is why there are much saner, empathetic and more knowledgeable minds that have put such programs in place in their respective countries are reaping the benefits.