Can I get pregnant while having sex during my period?

NO. If you are having your period, actively menstruating, then you would not be ovulating and would not be in the fertile time of your cycle.