Undoubtedly that can be the cause in some cases, but there are counterexamples. Like West Virginia which has a bad opioid addiction problem yet relatively low homeless rate. What does appear highly correlated is homeless rates vs. cost of housing to income ratios. Find a city with a real estate bubble, and you'll likely find a large tent city too.