When people say "it was the war that got us out of the depression, not the new deal", aren't they conceding that government spending can work?

Prior discussions overlapping this topic:
The New Deal didn’t end the Great Depression, WWII did!
Did New Deal or WWII end Depression?