at least for infants/children, the research is in favor of introducing bacteria to the immune system.
Exposure to microbes during early childhood is associated with protection from immune-mediated diseases such as inflammatory bowel disease (IBD) and asthma.
...
These results indicate that age-sensitive contact with commensal microbes is critical for establishing mucosal iNKT cell tolerance to later environmental exposures.
http://www.sciencemag.org/content/336/6080/489.abstract#aff-...
also some interesting info on children delivered by c-sections (which prevents newborns from getting into contact with the diverse vaginal flora):
CS was associated with a lower total microbial diversity, delayed colonisation of the Bacteroidetes phylum and reduced Th1 responses during the first 2 years of life.
http://gut.bmj.com/content/early/2013/07/09/gutjnl-2012-3032...
there's much more info to be found on the topic. these are just the ones i recently stumbled upon.