If you had a mental health condition that significantly impaired your functioning, would you consider taking time off from work?

If you had a mental health condition that significantly impaired your functioning, would you consider taking time off from work?