Yes, cut one stitch to begin unraveling, putting the hat sts on a needle and rip out the ribbing. Then you reknit from the top down and BO the ribbing. You can't take out the CO and unravel the rib in that direction, but if you undo it where the rib and hat meet it can be done. There's a tutorial at the
Techknitting blog.