how long can you wait to pee after having sex?

do i have to go pee immediately after? or can i give it about an hour?