You have given a confusing story.
Is this your child you gave the medicine than how can it affect to you or your unborn child.
If it is you have taken the medicine than it is too little to treat the infestation of worms.
The full dose is 400 Mg daily for three days.
Even this full dose will not affect your unborn child.
In future during pregnancy
you should not go for over the counter medicine.
Do care for you and your baby and bring a healthy beautiful child in this world soon.