Yes. If your travel is substantially for providing service to the charity, the hotel expense is deductible.
If possible, get an acknowledgement letter from a representative of the charity thanking you for traveling to the importatnt charitable event and particiapting by providing your services.