That is an issue that the patient should discuss with their oncologist and/or attending physician.
One might wish to consider a hospice or other such care facilty.
One might wish to meet with family to discuss what needs to be done in terms of a will or other legal matter, final arrangements and so forth.
But the patient definitely needs to get factual answers from a qualified professional.