Yes -- but -- by undercutting the wages you would have to pay people outside, it lowers the pay of the non-prison laborers. This hurts that community.
You can achieve the same result by paying them prevailing wage. This has the extra benefit of giving them some saved up money to start a new life when they get out, helping them avoid falling back into a life of crime to make ends meet.