Be aware that even if he didn't cum inside you, there's still precum that contains live sperm.
Like others said above, the pill did not protect you yet since it takes multiple days for it to suppress ovulation (unless you started it within first 5 days of your natural period).
Take plan B and take a pregnancy test after 3 weeks to check if it worked.