Yes, many things have to have failed before person ends up homeless.
In Finland the positive side is that homelessness is near impossible due financial situation in Finland, state will always provide you enough welfare to have a home (system pays 80% of your rent if you are on welfare)