Yes. You may name a charity as a beneficiary in your will. If the charity no longer exists upon your death, the court will usually distribute the property as closely as possible to your wishes.  In some instances, however, the gift could lapse and be distributed to your residuary beneficiaries named in your will.