Pinworm Medication

Has anyone taken pinworm medication while pregnant? My doctor said to take it since everyone in the house should be treated but it looks like it’s a class C in pregnancy and now I’m nervous 😬