Will the Courts Allow You to Have Input if Your Teen Is Mandated to a Rehab?

If the courts mandate my teen to a rehab will I be able to make a request to have him sent to somewhere nearby my home? Or is that a bad idea? He has been in one once before, for a three month stay; voluntarily. That one was close to home, but I am thinking that since he is back on drugs they might not want to send him back there. They had a good program, he just wasn’t ready.
How do the courts choose a rehab?