There are a ton of studies that indicate that early exposure to peanuts reduces incidence of peanut allergies. I'm not sure about other allergens.
https://publications.aap.org/pediatrics/search-results?page=...
https://publications.aap.org/pediatrics/search-results?page=...