Can you get a period and still be pregnant ?

So wait. I’ve just read somewhere that it is possible to still have a period and be pregnant ???? I thought having a period is a for sure sign you are not pregnant! I get how spotting can be taken as a period when you normally have light periods but .... can someone clarify for me ? I had a full heavy period. On time ! But now I’m being told it doesn’t matter ?