No. *NSYNC did not write their own material. Their hits were crafted by top pop producers/songwriters:
The members (Justin Timberlake, JC Chasez, Chris Kirkpatrick, Joey Fatone, Lance Bass) focused on performance, vocals, and choreography. Timberlake and Chasez later became successful songwriters for their solo careers.