If you mean top hats and such, sure, but the Panama hat, cowboy hat etc absolutely still have their plan in men's clothing, particularly if you live in the kind of climate where shade from the sun is a necessity.
The only place I'm aware of where hat use as a matter of dress and appearance is still strictly adhered to is in the US military.