STDs question

Does peeing before you get swabbed for std testing effect the results my doctor said i could go to the restroom but just making sure my results are accurate