Should I get plan b?

I had unprotected sex today and I completely forgot in the moment that I’m not taking birth control anymore because of the side effects. Should I get a plan b? He said he didn’t ejaculate but I don’t want to get pregnant.