The Pill induces an abortion; it does not prevent conception.
That is why it is classified as an ABORTIFACIENT!
There are pills which do both. One, the “Morning After” pill does as you say while the other commonly referred to as birth control prevents conception. That one has been around since mid 1960’s,