More or less. Young kids want your attention and don't have the capacity to understand why you can't give it and have to focus on something else for 8 hours, so they'll just keep interrupting you. Babies require your attention periodically for basic-life needs or general fussiness but nothing beyond that (which is stressful, but not intellectually taxing). Teenagers are likely a bag of contradictions, but at least they understand the concept of working all day and needing space to concentrate. You can reason with a 15 year old, but not a 5 year old.
I'm mostly solving this issue with my 3-year old by playing with her all day (save for an hour or two of meetings) and then catching up on work at night, at the expense of a bunch of sleep.
I'm lucky that my software job is mostly conducive to this...