Yes, exactly, there's a reason the term is "continuum of care." There is no one-size-fits-all approach to solving addiction because, to quote Ted Lasso, all people are different people. Maybe some people do need to be involuntarily incarcerated, but many, many others would be able to recover with far less intrusive interventions.
Also we are chasing a lagging indicator by focusing exclusively on the homeless population. The vast majority of people who end up homeless because of addiction would have benefited from some far earlier, far milder form of intervention, or from the absence of something that actively drove them into addiction, e.g. some quack pushing oxycontin on them because Purdue Pharma promoted it as non-addictive. Or job loss because of offshoring pushing them into economic despair that then drives addiction, which they are unable to recover from because of the lack of affordable or accessible retraining or educational opportunities.
In many cases over the last 20-30 years, it was the combination of both job loss and careless opioid prescription that pushed people into an unrecoverable spiral, especially in the rust belt, where the opioid crisis hit the hardest. We may not have fixed the job loss side of the problem, but at least doctors aren't pushing pills the same way they were 10-20 years ago after Purdue's corporate downfall, so the number of people driven into addiction-mediated homelessness by that disaster should at least start tapering off soon. But if we don't help people before their lives fall apart with a continuum of support options that are accessible before they are in deep crisis, and are accessible to people who are beginning to spiral but don't yet appear to be in deep crisis, it will cost far more and be far more challenging to help them recover once they are on the street.