Will taking a bunch of birth control pills end pregnancy?

I'm afraid they only prevent it not get rid of it. if you think you are pregnant take a test right away. birth control will not end pregnancy.