Irregular periods and Ttc after ectopic! Please help

Haleigh
I am TTC after an ectopic A few months ago. I have irregular periods and am worried that I am in fertile. But if that was the case then how did I get pregnant then and not now. Is there anything I can take like Clomid without going to my gynecologist for a prescription?