I think this would be a "Captain Obvious" moment, but... yeah, if someone comes into the hospital with a request saying "I'd rather die than be put through hell trying to treat whatever condition is trying to kill me," the hospital is going to let them die per their wishes.