No, that's having mental ill health.
Mental health is a state of mental well-being that enables people to cope with the stresses of life, realize their abilities, learn well and work well, and contribute to their community (World Health Organisation).