Fun fact: there were no (involuntary) homeless people in the USSR. And even voluntary homelessness was reduced (although through forced work - if you were caught panhandling or otherwise begging for money/food, you'd be put in a worker's home and scheduled for work at whatever nearby factory or farm that needed more people).
Tons of "social housing" was built - cheap but for the time, well made blocks of flats, houses, etc., often sold at a very low price thanks to state driven programs. Homeownership rates (as in, residential housing that was occupied by its owner) was up to 90%, East Germany being the main stickler to rentals that even the hard Soviet "no landlordism" rules couldn't eradicate fully (albeit in this case the landlord was the state, and the rent was dirt cheap).
So this is one VERY SPECIFIC aspect that wasn't true under socialism/communism.