Not exactly. Ali said "No Vietcong ever called me a nigger" and that he had no quarrel with them. He naver claimed to be a religious pacifist.
"Citing his Islamic faith, Ali refused to serve in the U.S. military during the war in Vietnan..."
"I ain't got no quarrel with those Vietcong." refusing military induction based on religious grounds (1966)