Yes, depression is a mental illness.
It’s a great term as it covers a broad range of mental health issues including various types of psychosis, rage, dementia, schizophrenia, retardation, the effects of brain damage among many others. Not having the skills to diagnose a specific disorder, it’s appropriate to use a general term “mental disorder” by applying life experiences to make the descriptive without a specific diagnosis.