Can you have sex on your period?

Is it nasty to have sex while on your period my friend does it but I want to know more opioins?