No. Baines serves as a "composite" character; a character comprised of several real-life people who had influence in Malcolm's life. For the screenplay, Baines (who introduced Malcolm to the Nation of Islam, and who was later one of the assassins who killed him) was entirely invented. While Malcolm was imprisoned, he met a man named John Bembry whom is credited with Malcolm's voracious thirst for reading and knowledge. Malcolm's younger brother, Reginald Little, already a member of the Nation of Islam, had written Malcolm a letter telling him that accepting Islam would be a way for his brother to free himself. Reginald later visited Malcolm in prison and introduced him to Islam and Elijah Muhammed's teachings, which Malcolm took to very quickly. As depicted in the film, Malcolm did indeed write to Muhammed asking for his guidance and blessing in joining the Nation of Islam.