Uti prevention

Jacki
Ok so this is probably dumb but i know your supposed to pee before and after sex to prevent a uti does this also apply to masterbating? I mean i normally go after anyway because i always feel like i need to pee but is it recommended to pee after masterbating?