Periods vs Pregnancy

Can you still have your period if it's close enough to you getting pregnant?