That is not legally possible. What you should do, however, is make an "Advanced Health Directive", "Enduring Power of Attorney" or "living will" to make your wishes clearly known and potentially avoid the possibility of dispute between family members as to how much treatment should be given...