Oh, yes. That's exactly how it works. No one would ask you "do you want to get into a war"? Ukraine didn't want to get into a war. Turns out it wasn't their call to make!
Least you can do is be prepared. If a hostile country believes "oh, they can't handle a war, it's going to be so easy", the risk of that country trying shit goes up. And if you really can't, the war would be more devastating than if you can.
The truth is that countries can't want anything, be hostile, or have any other personal trait simply because countries are not animate entities but rather a huge number of absolutely different people with different goals, and most of them would just love to mind their own business and don't want to kill and die in the name of some scum calling itself government.
Speaking of war as something inevitable, something unconditionally built in into human nature, and telling people who want peace to prepare, as in Orwell's "war is peace", simply reinforces the narratives of said scum and spins this morbid wheel up into total destruction.
Least you can do is be prepared. If a hostile country believes "oh, they can't handle a war, it's going to be so easy", the risk of that country trying shit goes up. And if you really can't, the war would be more devastating than if you can.