Does an STD prevent a woman from ovulating?

No. No, but it may cause scarring and prevent the ovulation from occuring correctly and ending up in the right spot. Scarring of the tubes the ovum needs to travel can be caused by gonorrhea and/or chlamydia.