Sorkin, 51, won an Oscar for his screenplay for "The Social Network." He is best known for creating the TV series "The West Wing," "Studio 60 on the Sunset Strip" and "The Newsroom." His films include "A Few Good Men" and "The American President."
In this month's issue of Men's Journal, Sorkin was asked what advice he would give his younger self.
"I'd tell myself not to try drugs. Once you do that, you're going to change the trajectory of your life in a terrible way," Sorkin told the magazine. "My big fear when I quit drugs was that I wouldn't be able to write anymore. Because if you're a writer and you're on a roll -- and I was on a roll when I was high -- you don't want to change anything about the way you work."