Plan B and paranoid

My boyfriend and I had sex for the first time, but we did not have a condom, but it was on my last day of ovulation. He did not ejaculate and he pulled out just for safety. I took a plan B the next day and I started my period yesterday. Should I even be worried that I could be pregnant? Can you still get pregnant from precum? Should I take a test?