Is it possible to get pregant if you have sex the day before your period?

I just saw a video on Instagram saying you can get pregnant if you have send on your period. I don’t do that but I do the day before I’m suppose to start thinking it’s safe.