Yes, this is true. War has been a constant for all of human history, so practically any technological advance can be attributed to warfare. Anyone who thinks that war is necessary for technological progress in 2018 has been drinking too much US military koolaid.