Stomach Pain?

My bf & I had sex on Tuesday. He used a condom which may or may not have fell off. So we got Plan B just in case. Yesterday I started taking the birth control pill for the first time. Earlier I had a sharp pain in my upper stomach and felt nauseous. The sharp pain is gone but I still feel nauseous. Why??