Sex after before period?

Is it bad to have sex before my period ? I feel it close ?