Under the right conditions, experiencing some adversity may foster resilience, whether that be emotional, physical, or within your immune system. This is the principle behind exercise, inoculations, and, say, Marine boot camp.