Doctor to assist

Should it be legal for a doctor to assist a terminally ill patient in ending their life by prescribing life-ending medication