I didn't see the movie, but I suspect that would have been true.
I saw the movie, but I do not know how authentic in all aspects. The Navajo Code Talkers had soldiers with them at all times. Their body guard, for lack of a better word, knew what his mission might entail; but the NCT were not aware they were expendable(in the movie).