Yeah, 'mercy killing' for example or its modern euphemism, euthanasia which provides relief from suffering.  Abortion would come under that definition as it prevents something unpleasant or undesired.