I am so sorry that happened to you! That’s absolutely terrifying!
If you’re on the combined pill, as long as you took 7+ active pills before hand, then you’re protected as it would be considered a break. However, if not I would take a test 3 weeks after the unprotected sex. Plan B isn’t 100% so you can still get pregnant if you take it.