Yes, but FDR's executive order allowed the military to order the exclusion of anyone from any place. The actual thing a person could be arrested for was passed unanimously by Congress to support the EO and enforced by courts. Even during a real national emergency, nobody was disappearing Japanese people without due process. Korematsu was arrested and tried and convicted and their conviction was upheld by courts of appeal and the Supreme Court. At the time FDR, Congress, the Court, and everybody else thought they were doing due process. There's a lot of daylight between that and what Trump is doing.