4 month old and cigarette smoke?

I had my 4 month old in his stroller on a walk earlier and we walked by a person smoking a cigarette. We were outside so I doubt he inhaled much but I'm still worried because I smelled the smoke so strongly. I'm overreacting right?