We don't see why not.
For example, in the Leask ruling in B.C., it was found that to the extent that the current system allows any placement of someone with mental illness or disability in segregation, it violates the Charter of Rights and Freedoms. It discriminates against them.
Whether it's mothers with child, minors or individuals who have mental illnesses, one wouldn't find us objecting to prohibitions on those placements.