Yep. It is highly unlikely that you would show positive on a saliva drug test if you stopped smoking for 24 hours. This chart lists the detection time of a saliva drug test as between 1-12 hours after smoking (Drug Test Detection Times). I'd say your idea to cease smoking before the test for more than 12 hours was smart though.