Can having encephalitis affect your intelligence?

Encephalitis may affect intelligence because encephalitis can be accompanied by neurological damage and infection, especially during the critical period of growth and development of children aged 0 to 2 years, when brain function is easily impaired and has a greater impact on intelligence. However, there are many cases of encephalitis in adults, and adults are less likely to have impaired intelligence due to encephalitis than young children.