Stress can affect immune function