Does exercise change your period?

Kaikilina • California girl. 19. Stay active. :-)
I used to workout regularly and my periods used to come on the same day every month. Now that I'm not so active my periods have been completely random and unpredictable. Does working out effect your period. Does not having a regular workout routine make me have an irregular period or should I be worried about it?