Yeah, he won an Oscar for Best Original Song for "Theme from Shaft" (and got a nomination for the score, losing to "Summer of '42", a film I know nothing about). The other nominees for Best Original Song that year were:
"The Age of Not Believing" from "Bedknobs & Broomsticks"
"Bless the Beasts and the Children" from "Bless the Beasts and the Children"
"Life Is What You Make It" from "Kotch"
"All His Children" from "Sometimes a Great Notion"
Classics, all of them. Hmm. But then, some of the other nominees were Johnny Mercer and Henry Mancini, so that's something I guess.