Signs of worms?

I'm 33 weeks pregnant and I think my kitten has worms! Obviously I am taking her to the vet. Her signs are that her belly is super hard, kind of bulging out and she cries when she poops! I just want to know what precautions I should take during pregnancy and if there's any chance that this could hurt my baby. I've had the kitten for about two weeks now. Any advice would help!