Should people be allowed to refuse/accept medical treatments to end their lives if diagnosed with a deadly disease

Should people be allowed to refuse/accept medical treatments to end their lives if diagnosed with a deadly disease?