Not exactly- Nation of Islam was a cult of personality around “Elijah Mohammed” that is considered heretical by real muslims; it had nothing in common with conventional islam but Qadaffi’s style of head gear.
Kind of like how the Westborough Baptist Church is not Baptist.
Much later some Sunni influence seeped into the Nation of Islmam but it’s still heretical.
You don't have to be sunni to be muslim.