Yes, it is perfectly alright to have sex during your periods. Just ensure that you both are comfortable with the idea.