No.
Outside of prohibitions on weapons of mass destruction in space, it doesn't prohibit military use of space per se.
Take it for what it's worth... https://en.wikipedia.org/wiki/Outer_Space_Treaty
You can double check the wiki if you like, but in the end, what the treaty bans is...