If you work in a big tech tech company and let the RSUs actually vest with a bit if financial frugality and saving, then you could. This is, of course, assuming that you don't intent to stay in an area of high cost of living.
The only reason to live in a place with a high cost of living is if you have a high income job nearby. Literally the entire rest of world is left to you in perpetuity if you saving up $1-2MM.