bluGill parent
In theory. In practice every president since before I can remember (maybe Carter?) has sent the military out for something like this. Trumps' supporters pointed that fact out often in his campaign. Too bad it didn't last.
Even Carter directed Operation Eagle Claw (unsuccessfully). I think we'd have to go back much farther to find a president who didn't order any military operations on foreign soil.