Pill and pregnancy

If you get pregnant and are on the pill will you still get your period?