Is it a UTI?

Only been two days after sex we used protection but I had discharge from my period now I have constantly pee and it hurts. Is the blood the reason?