You were always scolded for biting your nails as a kid, but little did your parents know that this (admittedly pretty gross) habit could benefit you in the long run. A new study published in the journal Pediatrics suggests that people who bit their nails and sucked their thumbs as children may have fewer allergies as adults.Related: 10 Terrifying Reasons To Stop Nail Biting — For Good! Researchers studied a pool of 1,037 children in New Zealand, tracking their nail-biting and thumb-sucking habits from the age of 5 to 11. Once the children reached their teen years, the researchers began testing them for common allergies, including dust mites, grass, cats, and dogs. The study continued into the participants' 30s. In the end, the researchers found that the people who sucked their thumbs or bit their nails with greater frequency were much less likely to have allergies as teens or adults. In fact, only 31% of those who had both habits tested positive for allergies."Our findings are consistent with the hygiene theory that early exposure to dirt or germs reduces the risk of developing allergies," lead researcher Malcolm Sears, PhD, said in a press release . In other words, the kids who put their (bacteria-ridden) hands in their mouths more often grew accustomed to common types of germs before they develop sensitivities or allergies to them.