Should Forcing Prisoners to work be legal?

I mean, working a quarry is stereotypical hard labor. I think Nelson Mandela was forced to work in a quarry, for example. See also the linked FQ.

~Max