Is it bad to have sex while on your period?

Aubrie
If you have sex while on your period will you get an infection or anything?