Can head trauma cause mental illness years later

I’ve been wondering about this because some mental health symptoms showed up years after a head injury, not right away. At the time, I mostly dealt with headaches and feeling foggy, so I assumed the worst of it had passed. Later I started noticing irritability, poor concentration, sleep problems, and stretches of low mood that didn’t feel like my usual self.

I know stress and other things can cause similar symptoms, so I’m not assuming the injury is definitely responsible. Still, it seems possible that changes from a traumatic brain injury could become more noticeable later, or that the injury made me more vulnerable when other pressures came along. I’ve read that symptoms can sometimes be delayed, but a lot of the information is confusing.

Has anyone had a doctor connect mental health changes years later with an old head injury?