am i pregnant?

so me and my bf had unprotected sex 2 nights ago and he came inside of me a little bit... i read somewhere that you cant become pregnant until your fertile window begins.. when this happened my fertile window was is 7 days. i also read that sperm can only live for 5 days so am i pregnant or am i okay? please help.. i need to know if i need to go buy a plan b pill. i dont want to buy one if i dont need to. thank you!!