Should Bath Exhaust Vent to Attic?

I recently realized that my second floor bathroom fan simply sends the moist humid air from my bathroom straight into my attic.  Would it work to run some rigid vent pipe to my soffits and vent it there?  Should I…

Bath with exhaust fan in ceiling