If it was possible to test for drugs through semen, drug testing would be a lot more fun. :-)
No, according to:
As for possible second hand smoke...
From http://www.marijuana.com/news/drug-test/detection-time/ :
"Can Secondhand Smoke Cause a Positive Drug Test?
"In rare occurrences, secondhand marijuana smoke can cause you to fail your drug test. It is possible that secondhand marijuana smoke will raise someone to the 50 ng/mL level. However, extreme secondhand exposure is required. For instance, being in a closed car full of pot smokers for several hours might cause someone to test positive in a drug test the very next day. Non-smokers are safe in a ventilated area such as an average living room or garage where partygoers are smoking pot.
"If you are even slightly concerned about receiving a positive drug test, call our Detox Partner at 1-877-247-1354 or email them at info @ passadrugtest.com. After calming hundreds of thousands of test-takers over the years, they are well-equipped to not only calm your fears, but find the right solution for you."