Period sex

What happens if you have sex while on your period?!? Can you get pregnant??