I am almost totally positive that they will only be testing your semen for your surgery.. it is highly unlikely that they will test your semen for trace amounts of THC. But yes, telling your doctor might be a good idea.