Sex and dealing with period

Can your period be affected if you had sex for the first time in several months but I used protection so ik I'm not pregnant