PLAN B

HELP!! I had unprotected sex with my boyfriend earlier today he said he didn't cum in me but not sure, I still want to take plan b because there is no way I can get pregnant but Idk please help 😭 How does plan b work? How long after unprotected sex should I take it? And what are the side effects😩😩