Moisture and oxygen, sure. But if you’re getting sunlight on your lungs, you’ve got bigger short term problems.
My bad - I threw in sunlight at the last minute, when I should have mentioned it in reference to its non-harmful effects (in moderate amounts) on skin.