Without appropriate regulations you're just building more AirBNBs.
A little less flippantly, just adopting this YIMBY line without thinking through regulating the market to ensure houses are for human habitation will not address the underlying issues. It will just line the pockets of real estate developers.