Sure. It's made from carbon fibers and epoxy. As long as they are protected from UV (which the paint or clear coat does) those materials don't degrade.
Check the frame carefully for cracks and make sure that the BB shell is still firmly bonded in the frame. Sometimes they come loose. Wiggle all the "braze ons" to make sure they are still firmly in place.
Treks are serviceable but nothing special, so if it's questionable, walk away.