Can you clean the cat litter box?

Hi ladies, I recently found out I am expecting my first little one. I have two kitties and I have read on some websites that it is unsafe to clean a cat litter box. Any opinions on this? I have gloves and a mask to wear.