You're absolutely WRONG (for lack of reading the decision)
Korematsu v. United States, 323 U.S. 214 (1944),
a decision by the Supreme Court of the United States that upheld the exclusion of people of Japanese descent from the West Coast Military Area during World War II, an exclusion that led to the internment of Japanese Americans.
Korematsu v. United States
A case in which the Court held that compulsory exclusion of citizens during times of war is justified in order to reduce the risk of espionage.
In an opinion written by Justice Black, the Court ruled that the evacuation order violated by Korematsu was valid. The majority found that the Executive Order did not show racial prejudice but rather responded to the strategic imperative of keeping the U.S. and particularly the West Coast (the region nearest Japan) secure from invasion. The Court relied heavily on a 1943 decision, Hirabayashi v. U.S., which addressed similar issues. Black argued that the validation of the military's decision by Congress merited even more deference.
Justice Frankfurter concurred, writing that the “martial necessity arising from the danger of espionage and sabotage” warranted the military’s evacuation order.