Can you still get your period if your pregnant and on the pill?

Might seem like a silly question but I've read online that you could and just wanted to make sure