The pill

How do you know if you're pregnant if you're on the pill? Will your period still come when you take the pills?