There's proof that this solution works :
Something similar was done for a large percent of housing in Israel , in the 50-80's. Israel was a newly formed state, with massive immigration coming with pretty large economic challenges. And yet it worked out pretty well - and housing wasn't a big problem - and everybody could get a place to live.