I mean i stood near a car and felt smoke just for a second and came inside
I'm assuming you mean were exposed to second hand smoke for a few moments while in the car? If that's the case I highly doubt that would be enough to cause any kind of damage.