.....but the tendency to get them is. Allergies have nothing to do with playing in the dirt or being too clean.
The National Institute of Health is not so sure:
"Possible explanations for the lower prevalence of hay fever, asthma and allergic sensitization in children living on a farm might be the development of immunotolerance or the stimulation of TH1 cells and suppression of TH2 cells by increased exposure of farm children to microbial antigens in the stables or farmhouses."
http://www.ncbi.nlm.nih.gov/pubmed/10651771