It already is being used for military purposes right now as in spy satellites. Even very recently SpaceX was tasked to launch a U.S.but it exploded and the satellite didn’t make it.
In 1984 arocket launched the and satellites for “reconnaissance,” and the satellite for missile detection. The list just starts there and goes into the hundreds including many satellites and so on.
And, by the way, not just by the United States, but other governments as well.
Furthermore, the Chinese government once shot a missile to destroy their own satellite in space just to say the could, and they succeeded, vastly increasing the dangerous debris cloud floating now in orbit. It was a military demonstration.