I'm clueless and confused

When I was growing up and stuff my mom always told me if you have a peroid you can't be pregnant. I know if you have sex and get you peroid the day after and you got pregnant you would miss your second period. But if you get a peroid that's mother nature's way of telling you aren't pregnant correct?