The statement "Both Kwame Nkrumah and Jomo Kenyatta served as the first prime minister of their respective countries (Ghana and Kenya) before becoming president" is TRUE.
Both led their nations from colonial rule to independence as PM, then became executive Presidents when their countries became republics within the Commonwealth.