Indirectly it does. Check out the economic multiplier effect.
https://www.tutor2u.net/economics/reference/multiplier-effec...
https://www.tutor2u.net/economics/reference/multiplier-effec...
In that time our national debt went from $9B to $33B. GDP went from $15B to $25B.
You can always calculate the multiplier, but in this context the multiplier would really need to be greater than 1 to show a meaningful economic benefit to the additional spending, and the debt to GDP ratio would decrease as GDP would grow faster.