No, they're just demonstartions for the taxpayers. Kind of a "thank you for supporting us, come see what your boys/toys can do."
I'd bet the majority of the demos at airshows now are corporately sponsored though. Just begin to google airshow schedules and you'll see that there are as many private/corporate demo times as there are military demo teams. Also, a lot of old historic and modern aircraft on static display.