If you accidentally take birth control while pregnant will it hurt the baby?

No because the pill is just estrogen. I was eight weeks along before I found out I was pregnant and the whole time I continued to take my birth control pill. The baby was healthy. ( I spotted and thought it was my period, that's why I was so far before I found out!)