Can pinworms go away by themselves? (23F)

Hi. When I was a kid, I noticed I had lots of small white worms in my stool, and I was also extremely itchy. I remember I told my mom about it, and she just laughed at me but never took me seriously enough to take me to a doctor. That was when I was around ten, but I’m 23 now. I no longer see anything in my stool. I honestly forgot about the whole thing till recently and now I’m wondering… do they just go away on their own???