Can brain fog be caused by allergies?

I AM thinking that a lack of getting my allergy shhots could cause brain fog?

Rich