Should we provide life-sustaining treatments to patients with permanent loss of cognitive capacities?

Should we provide life-sustaining treatments to patients with permanent loss of cognitive capacities?