There's never been a time under capitalism where there wasn't homelessness or exploitation. The whole system is built around people who own capital exploiting the workers. In fact, having destitute people is a core component of the system https://en.wikipedia.org/wiki/Reserve_army_of_labour
I would argue that the same things were probably true in western capitalist countries at the time (I have no evidence)
There's never been a time under capitalism where there wasn't homelessness or exploitation. The whole system is built around people who own capital exploiting the workers. In fact, having destitute people is a core component of the system https://en.wikipedia.org/wiki/Reserve_army_of_labour