Can you get pregnant 4 days before AF?

Can you get pregnant 4 days before your period is due? If so would you still have a period in 4 days time?