People who smoke have the greatest risk of developing lung cancer, though it can also occur in people who have never smoked.