If you have sex two days prior to your expected period or two days before the period ends can you still get pregnant or get pregnant/still have period?

Period pregnancy. Hello ~! any thing is possible, but if it happened it happened once in the history of mankind. Relax, you're not pregnant from sex just before or during a period. thanks.