Is it true?

My friend had said that women can get pregnant and still get their period. But the doesn't make sense since the egg needs the blood walls to be it's nutrition... So I'm lost??