Emergency pill, help?

Well I took an emergency pill last cycle (month) and my period came on the day it was supposed to.

Now, I’ve been having anal with my boyfriend, he never came or anything like it, but he kinda touched the external part of my vagina with his penis.

The reason why I am confused is because my period was supposed to start on June 29, and I am rarely late. I wanna know if the pill I took last month could have affected this cycle and is causing the delay or if it could be because of the sex, which I think could not be possible because it never entered or came. Please help out