Is It Legal for Trump to Use the Army at the Border?

It is absurd to claim that our military cannot defend our borders.