I took a break after getting laid off from YCR (2017) and joining Google (2020). My wife just had our baby and she was a bit stir crazy, so I thought it better to focus on getting her a job first (so I would take care of the kid instead). We have a bit of redundancy now, which is useful at least (we are ok if either us loses their job, but we would definitely try to both stay working).
What they don't tell you is that employers are suspicious if you are out of the job market for more than a year. And anyways, no, it doesn't make sense to stay at home and raise your kid, just pay for the childcare and get back to work as soon as possible. And they wonder why birthrate is tanking...