No, Mario's hat cannot be removed in any Wii game. It's a permanent part of his character design with no in-game option to take it off.
While some later Mario titles (like Super Mario Odyssey) feature hat-based mechanics, no Wii-era game allows hat removal. Future titles might introduce customization, but it's not possible on Wii.