After my last miscarriage last year, my cycles were really out of whack. One month I'd have a 21 day cycle, the next month a 30+ day cycle. I never knew when I ovulated. Which is how this pregnancy happened. I thought I was safe as I'd only finished my period something like 4 days beforehand.
Hopefully your cycles return to normal for you very soon.