Sex and period

If my period is coming in 3-5 days and I have sex, would my period still come if I accidentally got pregnant? Or would it skip.