Ms. Brochstein is correct.
I would add that when a defendant is held in jail pre-trial on a criminal charge, the defendant is entitled to credit for that time at sentencing, with a few minor exceptions that are very rarely applice these days. The key is whether the jail is listing the criminal cases as being reasonas for holding the defendant in jail.
This is a question the defendant needs to discuss with his lawyer. Even if he has only a family lawyer, that attorney will surely know a criminal lawyer that can be consulted.
Answers on Avvo are for general information purposes only and should not be relied upon as legal advice. No attorney / client relationship is created by providing this answer. For specific advice about your situation, you should consult a competent attorney of your choosing.