Yes, most airline loyalty programs allow you to donate your miles to charity. Simply log in to your online airline loyalty account and you will normally find a section titled Redeeming Miles, Using Miles, or Donating Miles.
You will be able to select from a list of participating charities and be able to facilitate the transaction online.