Good question, that's outside of my area of expertise, but my assumption would be that the justice system would at least allow you to communicate with your - prospective - lawyers. If not then it's a lost battle before it has begun.
It didn't work out that way in my case. Prison/jail phone systems are a wreck. I wasn't able to contact my attorney and when I brought this up to the corrections officers, they said that I had no right to. Whether this was true or just the whim of guards who take inflicting abuse as a perk of the job, the end result was the same.