The answer is no. Diarra never captained the Ghana national team. Throughout his career, he represented other national teams, including France and Senegal, but he was never the captain of the Ghana national team.
The Enigmatic Journey of Mahamadou Diarra: A Quiz of English Words and Football Feats