I've worked remotely in an apartment with my two kids (5yo and 3yo), and is not easy: sometimes I ended up working during late hours because then I had quiet time.
On the other hand, I find it priceless I can take a quick break and play for a couple of minutes with my kids.
What helped me is to use earphones, isolating the noise and signaling that I'm working and not to be interrupted.