Is it safe to have sex during periods?

Safe. People can have sex during menses. However if you are asking if this means pregnancy won't occur - the most I can say is the probability would be quite low at that time.