No. Africa is a continent comprising 54 recognized sovereign countries. The United Kingdom is a sovereign island nation in northwestern Europe (England, Scotland, Wales, Northern Ireland).
Historical ties: UK colonized large parts of Africa (19th–20th century). Today, 21 African nations are members of the Commonwealth of Nations (voluntary association). But politically, legally, geographically—Africa and the UK are entirely distinct.