I’ve read that the “Whole NINE yards” was the phrase meaning a WWI machine gun crew fired the entire belt from an ammo container that wss NINE YARDS (27feet) long. It was the advent of the Machine Gun that lead to the slaughter on the “Western Front” of WWI.
No, the phrase dates back at least to 1855, before belt-fed machine guns.