Is it legal to wire a bath fan using load from top of GFI outlet?
The real answer is "it depends on what else that circuit does". According to the NEC, if your outlet circuit goes to more than one bathroom, powering the fan/light from it is a violation. If it's only in that bathroom, you may be able to do this without violating code, but I'd recommend consulting a licensed electrician for advice, if nothing else.