Yes. There are leading experts who have spent their lives and careers understanding with specificity the answer to your question. I hope to do them justice with a cursory overview.
It doesn't take a giant leap of logic to understand that a person who is unwell is not able to do many things the way that everyone else in society does, particularly when a person is being driven by addiction, where they have a fundamental challenge with how their brain may be operating. They often are more closely interconnected—not always but particularly with addiction—with people who are involved in the trafficking of narcotics.
If we actually go upstream a level to say, let's not always just target the end-user but let's realize that you can bust criminal organizations and you can provide treatment to people so they are less likely to fall victim to addiction or are better able to manage their symptoms, you're going to see over time a positive outcome when it comes to the rate of violent crime that takes place in your communities.
The same logic, for what it's worth, would apply to investments in affordable and supportive housing. It's hard to expect people to meet the same social standards we expect of one another if they don't have a roof over their heads and food on their table.