Yes*. Splashes and gusts of wind will do their best to knock your hat into the water, but as long as it fits tightly, it should stay on your head. Make sure that if you do wear a hat, tighten any straps as much as you comfortably can. Also keep in mind that if you are on the Sunwapta River, you will be wearing a helmet.
*Bring personal items at your own risk