Rerouting and insulating fan pipes through the roof deck is recommended.
There is a lot of moisture built up in the house over the course of a day: showers, cooking, etc. All that moisture gets drawn up your fan vent and into your attic space without direct connection through the roof deck.