Soviet union had homeless and unemployed people, It was a criminal offence with prison terms starting at 1 year in colony. There was even a law specifically for gypsies where punishment for unemployment was 2-5 years in siberia.
Yes, it was a criminal offense since 1961 (I didn't hear about a special law for gypsies but it could be). So there were homeless and unemployed, but only those who really wanted to be. It took effort.