It's a very interesting ethical issue, but I think if he has this rather elite skill, he should be allowed to apply it if he is willing. If convicted he must of course pay his debt to society, but someone who's well being may require his skill shouldn't have to suffer if he is able and willing to aid them. Plus it would probably be more interesting than sitting around playing cribbage with the other inmates.