Pregnant on the pill?

So I just wanted to ask, on the pill your period is technically a fake period. So can it still come if you were pregnant??