Most work places say your kids have to be in day care or have someone else there watching them
It depends on your job and how understanding your boss is. I work from home as a bookkeeper. It’s quite easy in my profession. I also do social media management and virtual assistance. My daughter is 6 now but when she was younger her I was able to work around her schedule. I find it harder to do jobs that require customer service and direct contact with customers because of background noise.
Check your workplace policy - everywhere I’ve ever worked requires children to be in childcare whilst you are working from home