Earlier quoted context omitted.
In Silicon Valley, most likely you are not going to afford a house anyway.. .
Sunnyvale (current ground zero of Apple) median is close to 2M - that is only 5x of $400K which a lot of FANG and other engineers pull yearly (and that is the main reason for current SV home prices as, during such low mortgage rates, the market is naturally self-adjusting to 5-6x of prevalent salaries. In 2008 those houses were $700-800K+ - the 5-6x of those $120K-150K salaries back then).
You shouldn't go to the bay area because you will never be able to afford a 2 million dollar house on 300k a year.
Stay in Vancouver and just buy a 1 million dollar house on 90k instead.