Is it the same?

Are you supposed to pee after you masturbate or is it just if you had sex? Like is it the same??