Periods and sex.

Super random question but is it bad to have sex while you are on your period ?