Mental health disorders are often connected to each other; one can pave way for the other. For instance, if your anxiety is stopping you from traveling alone, that inability can lead to depression. It has been observed that many people with anxiety also have depression.
Conditions like anxiety and depression do share several symptoms. However, their course of treatment varies; their causes vary as well. But to address the question, anxiety and depression are two separate mental health disorders.