This is a topic of actual research, and metro area rental vacancy rates (i.e. how affordable/abundant housing is) are the main determiners of whether someone at risk actually becomes homeless.
> The fundamental conclusion is that the consequences of individual vulnerabilities are far more severe in locations with less accommodating housing markets. [0]
[0] https://www.sightline.org/2022/03/16/homelessness-is-a-housi...
As an easy counterexample, San Francisco had a rising population experiencing homelessness years before marijuana legalization in January 2018 [1].
[1] https://sfgov.org/scorecards/safety-net/homeless-population