Birth control

If I had sex 2 weeks ago & took birth control right after a few days I missed my period would it be effective & when is the pill not as effective?