Actually, I wrote a paper over the summer on this very subject for my Philosophy course. According to the AMA, yes, this is ethical. It is ethical to give sufficient pain meds to alleviate pain, even if doing so will hasten the patient's death, but...