Could I be Pregnant ?

So me and my boyfriend had protective sex today but after approximately 30 minutes of sex he said he wanted to try it without the condom & took it off and did two strokes ( not that it makes a difference) but if he didn’t cum and had pre cum (as far as what i know is pre cum (clear)) can i be pregnant ? How long before i can take a pregnancy test and how long until plan b is effective?