Yes snorting pills absolutely gets into your lungs and cause major health complications down the road. You have to go very slow when insufflating and wet your nose so as much gets absorbed in the mucus membrane as possible. But that being said its really not the best longterm route of administration because pills contain all sorts of binders and fillers, not just the active compound.
Trust me ive sorted thousands of pills also and its something i think about as well. The particulars also get lodged inside of thee heart as well when they move through the bloodstream, things like the talc. Most common in pharmaceutical pills, who knows what they are putting in counterfeit fent presses.