Yes. I believe the research shows that treatment is more effective than prison alone. But treatment and community are more effective than treatment and prison.
I think there's a strong body of knowledge around that. I could get you the references if you want; I think they're pretty conclusive. It's certainly worth pursuing and paying attention to that kind of evidence.