Intestinal worm during 25 weeks pregnancy

Patient: I am 25 weeks pregnant then test with intestinal worm inside my stomach,,can this affect my pregnancy? i am very worried about it.

Symptoms: A big worm mix on my stool..

Doctor: