Yep, you are correct. I believe World War I was the first war (for Americans, anyway) where disease wasn’t the #1 killer of soldiers. Advances in medicine, nutrition and food preservation (bad tinned meats sickened a lot of guys in the Spanish-American War), and so on.
But then the flu epidemic right after the war killed more than WWI itself.