Ovarian Cysts and ttc

About a month ago I went to the emergency room for vommiting, stomach pains, and an excruciating headheache. The Dr. told me that it was all caused by ovarian cysts. For over a year my periods hurt almost unbearably bad and he informed me that they were most likely what caused that too. I have an appointment scheduled to have them checked out, but my question is do they cause infertility? I've been trying to conceive for close to ten months with no luck, and want to know if they have anything to do with that. I'm aware that none of you can give me an accurate diagnosis, I'm just looking for someone with any experience with this. Thank you all