Lol. I think to be accurate, you would inhale some of the substance second hand and enough for it to have an active effect on the body in some way (likely not consciously noticeable) but that is a far cry from whether you would actually sense or feel the drug working or actually get high.
What actions you take to avoid the substance and situation all depends on your personal concerns regarding the substance.
If you only dont want to get or feel high, then you likely wont as per previous posters.
However if you dont want the drug in your body whatsoever, maybe have some sort of faith, recovery or health related belief against it and dont want it to be doing anything inside you at all, whether it be noticable or not, then you prob dont want to even be near the smoke, in the car or anywhere close by or near the circumstances you mentioned.