Dumb question

What's spotting?? 
I had unprotected sex for the first time two nights ago, he didn't ejaculate in me, but I am aware of precum. My periods are irregular, but if I do get my period soon? Does that mean I'm not pregnant? 
If I miss my period what can I do?