Period way early?

I'm not due for another period for over two more weeks, but I just started. I had sex two days ago, but other than that nothing has been out of the ordinary. Could having sex have made my period come this soon or is it unrelated?