No, it does not magically transfer ownership, but for what crime would you be prosecuted? You've already done time for stealing the car.
More so, "possession of stolen property" is also a crime. The car doesn't magically become unstolen just because the theft went to jail.