Ph off/uti question

My bf and I had sex and I was fine once then the second time I felt fine after but 2 days later I got a uti could he have caused it?