Serious question

If your on the birth control pill and get pregnant but don't know it at the time cause your unsure. Should quit taking it if you think you are pregnant? Or keep taking it as directed? Comments please!