Absolutely. If an individual is suffering from a mental health problem, such as depression or anxiety, and then, due to circumstances, that person gets put into solitary confinement, studies have shown that it may lead to suicide or conflict with officers. This in itself will cause more costs, and it will put a lot more of a burden on the system to be able to handle this. Again, having those provisions available and making sure that all levels during this process have an understanding of the individual's situation and things that need to be considered would, in the long term and overall, not only save money but also improve the person's ability to reintegrate.
Remember, the whole goal is to bring a balance between someone who has committed a wrongdoing and needs to be sentenced and, let's say, punished for that, and making sure that we provide an environment for them to be able to effectively reintegrate back into the community, because we don't want them to re-offend.