Can exercise nd change in diet shorten period?

This month I had spotting and then period came but flow was hardly for a day ..and then just spotting..not pregnant . . But I did start new exercises last week ..and completely change my diet last week.. could that be the reason ?