Sorry if this is a dumb question but....

If I have sex the days right before my period, it would be the NEXT period that's missed?? Or how does that factor into DPO etc?