There is some difference between "lock someone up for 2 years and let them meet the real gangsters to teach them how to be criminal" and "lock someone up and teach them how to become legal". There is much work to do to improve the current situation on this front. Its not made easier that the legal system punishes black people to an extraordinary extent. Also, there are other forms of punishment than just putting someone into a prison. Like fines for example.