Yes, you can name a charity as beneficiary of your IRA, but be sure to understand the advantages and disadvantages.
Generally, a spouse, child, or other individual you designate as beneficiary of a traditional IRA must pay federal income tax on any distribution received from the IRA after your death. By contrast, if you name a charity as beneficiary, the charity will not have to pay any income tax on distributions from the IRA after your death (provided that the charity qualifies as a tax-exempt charitable organization under federal law), a significant tax advantage.
After your death, distributions of your assets to a charity generally qualify for an estate tax charitable deduction. In other words, if a charity is your sole IRA beneficiary, the full value of your IRA will be deducted from your taxable estate for purposes of determining the federal estate tax (if any) that may be due. This can also be a significant advantage if you expect the value of your taxable estate to be at or above the federal estate tax exclusion amount ($5,450,000 for 2016).