Going bathroom after sex

Hi all... silly question, but does going to the toilet to pee after sex stop sperm travelling? Will the sperm come out? 🤷🏻‍♀️