Working out affecting my period?

Da

I work out 9 months out of the year and of those nine months I got my period twice but I had a break between basketball and track when my cycle was consistently every 39 days. So I was wondering if working out is making my period not come.