Can a girl pee when a guy's penis is inside her?

I have this weird friend who want to know if a girl can pee while a penis is inside of her.