Yes- but raises an interesting problem of nuclear energy. Might be very important/useful in space.
The book series "The Expanse" does an amazing job of showing what a war in space would look like, and the role of nuclear energy.
Interestingly, nukes become small fry compared to slinging asteroids at planets.