Does the environment around us affect gas exchange, such as

Does the environment around us affect gas exchange, such as air quality or pollution? Is there more of an effect with internal environments (indoors) or external environments (outdoors)? What about other factors such as smoking, elevation, or location?