Pinworm outbreak

In my oldest daughters daycare there has been a Pinworm outbreak. We got all the medicine to give to the whole family. But I’m a little nervous to give it to my 7 month old. I’m not even sure she has them but she does play with her older sisters toys and puts them in her mouth. Has anyone treated a baby for pin worms before?