"Not everyone who develops a psychiatric disorder later in life will also develop dementia, but given how often the two types of conditions occur together, Dr. Garcia-Ptacek advised that doctors order cognitive testing for older adults with new psychiatric symptoms, as a precaution."
https://www.nytimes.com/2023/11/08/well/mind/mental-illness-depression-dementia.html