Still is, come to think of it.
Look at the number of American presidents who were elected based on their military success.
Notably, none since Eisenhower.