Do you also have to pee after masturbating?

I know utis can be caused when you have a new sexual partner & I do but I usually pee after we have sex & we haven’t done anything recently. I’ve only fingered myself & was wondering if you have to pee after too?

Also, why is it important to do so? Like, what’s it doing to our lady parts?