Herpes???

My boyfriend and I had oral sex on Sunday (I was receiving) and a couple days later he woke up with a cold sore. Is it possible that he could have given me herpes before the cold sore was active? Should I get tested?