Yes, even if you've had pinworms before and were treated, you can get them again if you're exposed. The best thing to do is to make sure you always wash your hands after using the bathroom and before you eat.