What happens if you don’t know your pregnant and still take your birth control ?

If you are pregnant and don’t know yet, but continue to take birth control pills everyday until you find out your pregnant... will it hurt the pregnancy??? Is it dangerous??