maybe. this snorting can definitely cause ear pain by increasing pressure in the middle ear space (the area on the other side of your eardrum) via the eustachian tubes. germs that cause middle ear infections can migrate up the eustachian tubes from the back of your throat. even nose-blowing can cause increased ear pressure and pain so perhaps you need to investigate the medical reason(s) for your nasal congestion and over-production of mucous.
can sniffing back mucus instead of blowing it out through your nose cause an ear infection?