sorry if this is a stupid question

Does having sex affect your period in any way? I mean besides missing it because your pregnant