Did he cheat??

Weve been together 2 years. I havent seen him in awhile i moved and a couple weekend we met and had sex and now i have an std, did he cheat?