It shouldn't be a problem at all. There are so many who do this. In fact, a depressed therapist might be better at their job than a therapist who hasn't experienced severe depression. I understand you meant "psychologist," not therapist. I am referring to analysis, not the psycho-pharmacological approach. If you want to be a therapist who offers analyses, there is nothing stopping you, not even your mental states