Only for as long as it takes you to build your personal network and resume so that you can demand the same pay elsewhere.
Anchor your salary as high as possible as quickly as possible to establish what you're worth and then move.
Bay area tech beaucoup bucks in flyover country is a recipe for early retirement.