Yes, but only after a psychological examination to show they fully understand this choice
Unless it's a mental condition such as dementia where the patient cannot consent, pass the right to the family who will still be evaluated on the severity of the decision