Are you exposed to second hand smoke just walking passed people who smoke?

Yes - a little. I generally avoid such smoke if visible, but like to make a theatrical cough when I have no choice but to walk by such people who are dumb enough (or addicted enough) to do their best to destroy their own lungs with smoking.