Yes, Steven Spielberg directed The Color Purple (1985). It was his tenth feature film and a conscious departure from the blockbuster adventure territory of Jaws, Raiders of the Lost Ark, and E.T. into serious literary drama.
Spielberg didn't write the screenplay; Quincy Jones championed him for the director's chair; and because Spielberg often produces films he doesn't direct, some assume "producer credit = not director." Here, he did both. The film's tonal shift from his earlier work also leads some to misattribute it.
Correction noted: The initial premise of this article was incorrect—Spielberg did direct it.