You can do it, but it will just be a lot harder to do.
Personally I decided to stay in the Midwest and make 170k instead of 300k, but I have my family, and family matters more to me than an extra 130k in salary.
This is why we need more remote work! People need to be able to live where they need (or want) to live for a plethora of reasons ... brains are just as good in the midwest, or in the south, as they are on the coast.
It's a data point you should consider, particularly if baby sitting, nannies, etc. are very expensive in your area.
People underestimate how much help one needs in raising kids because a few decades ago the mom would either not work or work an easier/part time job. This still happens in rural or semi rural areas in the US.
Nowadays in the city both parents are in 8-9 hour day high intensity jobs. You may have time for your kid, but you have less energy.
That's great. Awesome society.