My period came 8days early

What does that mean ? I do have irregular periods but it’s always late never early I did have unprotected sex he pulled out but he took a while idk I threw up this morning after I took two Advil’s on an empty stomach that most likely was the cause right ?