Depends on the situation. If it's "I have a terminal illness that causes me intense pain every waking moment.", I think most people would be fine with a loved one "opting-out".
If it's "I don't care about my kids, quitting heroin is just too hard", then yes, it's quite a selfish and cowardly thing to do.