Omg nephew had pinworms/threadworms!!!

So I've just been told my nephew has thread worms which I know if highly contagious. I was in contact with him 4 days ago. I'm freaking out I will catch them and I know you cannot take meds in pregnancy for them. I suffer from anxiety and this has actually given me a panic attack. Do you think it's possible for me to have caught them? He started displaying symptoms today. Help me