Yes. It was absolutely acceptable. Why?
The Niihau incident.
Tl;dr: A Japanese soldier crash landed in Hawaii after Pearl Harbor and was able to effortlessly convince the Japanese immigrants on the island to turn traitor to the US. It was determined that there were enough Japanese American Immigrants that held FIERCE loyalty to the Japanese Emperor and Japanese Government that they would have absolutely, 100%, would have went full on sperglord on us, committing sabotage, suicide bombings, and spying on us 24x7. Supposedly Japan had already set plans in motion for this very situation but we're not allowed to talk about that as Japanese Americans are official victims and thus they can only ever be suffering innocent golden children wot never do nuffin' wrong and the US Government that put them into camps are only allowed to be comically evil supervillain nazi-analogues.
Was it the right move? Ask me again when we're in the midst of another world war and we need to find out if we should be oh, say, putting all the Jeets or Islamists into camps. (Hint: Yes, we absolutely should and absolutely will and no amount of crying white women will stop it.)
BTW, the camps were the nice option. In earlier eras of world history, they would have just been forced out of the country by gunpoint.