A faraday cage must be enclosed metal all around. A hat has a big hole where the head goes :) I don't think it will function as one. Microwaves are very prone to bouncing.
It should significantly reduce the signal strength though.
It should significantly reduce the signal strength though.