Answer by taking a quote from the following article:

Maya Angelou ( ( listen); born Marguerite Annie Johnson; April 4, 1928 - May 28, 2014) was an American poet, singer, memoirist, and civil rights activist. She published seven autobiographies, three books of essays, several books of poetry, and was credited with a list of plays, movies, and television shows spanning over 50 years. She received dozens of awards and more than 50 honorary degrees. Angelou is best known for her series of seven autobiographies, which focus on her childhood and early adult experiences.

In 1961, Angelou performed in Jean Genet's play The Blacks, along with Abbey Lincoln, Roscoe Lee Brown, James Earl Jones, Louis Gossett, Godfrey Cambridge, and Cicely Tyson. Also in 1961, she met South African freedom fighter Vusumzi Make; they never officially married. She and her son Guy moved with Make to Cairo, where Angelou worked as an associate editor at the weekly English-language newspaper The Arab Observer. In 1962, her relationship with Make ended, and she and Guy moved to Accra, Ghana so he could attend college, but he was seriously injured in an automobile accident. Angelou remained in Accra for his recovery and ended up staying there until 1965. She became an administrator at the University of Ghana, and was active in the African-American expatriate community. She was a feature editor for The African Review, a freelance writer for the Ghanaian Times, wrote and broadcast for Radio Ghana, and worked and performed for Ghana's National Theatre. She performed in a revival of The Blacks in Geneva and Berlin.  In Accra, she became close friends with Malcolm X during his visit in the early 1960s. Angelou returned to the U.S. in 1965 to help him build a new civil rights organization, the Organization of Afro-American Unity; he was assassinated shortly afterward. Devastated and adrift, she joined her brother in Hawaii, where she resumed her singing career, and then moved back to Los Angeles to focus on her writing career. She worked as a market researcher in Watts and witnessed the riots in the summer of 1965. She acted in and wrote plays, and returned to New York in 1967. She met her lifelong friend Rosa Guy and renewed her friendship with James Baldwin, whom she had met in Paris in the 1950s and called "my brother", during this time. Her friend Jerry Purcell provided Angelou with a stipend to support her writing.  In 1968, Martin Luther King Jr. asked Angelou to organize a march. She agreed, but "postpones again", and in what Gillespie calls "a macabre twist of fate", he was assassinated on her 40th birthday (April 4). Devastated again, she was encouraged out of her depression by her friend James Baldwin. As Gillespie states, "If 1968 was a year of great pain, loss, and sadness, it was also the year when America first witnessed the breadth and depth of Maya Angelou's spirit and creative genius". Despite having almost no experience, she wrote, produced, and narrated Blacks, Blues, Black!, a ten-part series of documentaries about the connection between blues music and black Americans' African heritage, and what Angelou called the "Africanisms still current in the U.S." for National Educational Television, the precursor of PBS. Also in 1968, inspired at a dinner party she attended with Baldwin, cartoonist Jules Feiffer, and his wife Judy, and challenged by Random House editor Robert Loomis, she wrote her first autobiography, I Know Why the Caged Bird Sings, published in 1969, which brought her international recognition and acclaim.

Did she spend any time in Africa?
Angelou remained in Accra for his recovery and ended up staying there until 1965.