If your boyfriend was inside your vagina without a condom, then yes, you risked pregnancy. A penis emits small amounts of sperm before ejaculation and that is enough to impregnate you. Not as big of a risk as full ejaculation but enough. You can test 2.5 weeks after that event. good luck