Does semen give a positive pregnancy test

So I’ve been testing all week, and nothing. I’m 11dpo, I had sex with my husband 4 hours ago, and I’ve just taken a clear blue and it’s positive! It’s what we’ve both wanted for so long, I literally can’t believe it.

My question is, could having sex before taking a test make it positive? Does semen produce any HCG or enough to affect it?