Can he finish in me?

I’ve just decided to get on birth control 4 days ago (The day after my period ended) If my guy finishes in me will I get pregnant or will the pill already be effective?