Is it? Certainly lots of people have moved to California, but lots have also left. Since 2000, California's population has grown by 17%, while the US has grown by 16%, and the world by around 27%.
I’m from here, and have a lot of friends who left. The primary factor for most of them is wanting to afford a single family home, which is easier elsewhere. Restricting movement would be insane, but two thirds of the population being from migration is a huge factor in pricing my friends out, and it does kinda rub me the wrong way when someone from thousands of miles away complains that there isn’t cheap space for them here, and demands that we change the area to accommodate them.
[0] https://en.wikipedia.org/wiki/Demographics_of_San_Francisco
In the Bay Area in the last 20 years, I think I can count the number of non-hispanic gardeners I've seen, on one hand. The number of non-hispanic custodial workers, maybe on 2 hands. Restaurant workers, regardless of the cuisine and regardless of the restaurant price range, are also most often hispanic.
Some people scream that hispanic immigrants are "stealing our jobs." I think, they're doing the job that white America now refuses to do. Without them, business couldn't survive. But as businesses have thrived --especially tech-- they're the first to get fucked by rising prices.
Certainly you could make the argument that if not for immigrants to the US settling in California it would result in less population growth here, but I think a housing policy which can't even keep up with very little net migration is broken.
And naturally when we talk about housing shortage we always mean in desirable areas. Even in California you can get land for dirt cheap today if you don't mind being in the middle of nowhere.
And when you say “desirable areas”, what this means is where jobs are located. Unemployed people living in the middle of nowhere are not good for society.