Plan B and the Pill

Is it okay to take Plan B while your on the Pill, if you didn't use a condom and he came inside of you ?