I gave up a very lucrative six-figure attorney job in the early 2000s to stay home and raise (and eventually homeschool) my children. It can be done. The trade off I see now (compared to my friends who stayed in the field) is that all of them have second (beach) homes and live in $1 million dollar plus primary homes. Their children probably have private college funded, where as mine have 2-4 years of state college paid for.
I feel that I made the better investment.
Same here, I was near six figures as a software engineer and gave up to stay home and homeschool. Ive never regretted it, though it was not always easy.