Caring about risks. Are severely depressed patients competent to consent to research?

Caring about risks. Are severely depressed patients competent to consent to research?