Peeing before or after sex?

If I were to be before having sex, would that reduce my chance of getting a uti? I peed after sex but it was only a little bit. Do they have the same benefits?