Yes, that's correct, though it doesn't mean NY and NYC don't outsource/insource service at rates that're unreasonably by any measure either due to cost or failure to provide reasonable service.
For examples, funding for pensions assumes that the state will maintain a set population of prisoners - which to me seems at odds of what longer objectives should be.