War is not something that you can ever really "win", but war is space looks like it would be especially dumb. The physics of orbital motion impose severe constraints on any maneuvers. Essentially it would be very costly for both sides, but there would be no reliable defense. The only thing you could count on would be destruction, with the resulting debris making further space travel difficult or impossible.
I enjoyed this article about it:
https://csps.aerospace.org/sites/default/files/2021-08/Reesman_PhysicsWarSpace_20201001.pdf