Yes, if it's not done in the way Congress has provided for elsewhere in US law regarding national defense.
As I pointed out, your complaint is with Congress. Thank you very much for demonstrating an abject inability to read.
So there's no problem then with using the military to secure our borders, as long as it is done in the way Congress has provided for elsewhere in the law.