Sure, but would it be cheaper than prisoners I can kill with the floor?
Even if you just needed to optimize say, welding a simple joint, it will always be easier and cheaper with slave labor than with technology. You can almost certainly automate that at scale, but would it be cheaper than...