Can people with psychological disorders join the army?

It depends on the disorder