Pre cum?

So I heard somewhere that if a guy uses the bathroom before having sex, then the precum should not contain any sperm. I suppose because the urine flushes it out. But for example if he masturbates, and then has sex, then most likely Precum will have sperm in it. Is this true?