Yes. The US does the same with commercial ships[1] and aircraft[2]. Interestingly, in the case of the US, part of the payment for providing this service is priority access to government contracts during peacetime. Which is doubly great for the government - no extra cost beyond operating cost, and the capability is regularly exercised even in peacetime.
[1] https://www.maritime.dot.gov/national-security/strategic-sea... + https://www.maritime.dot.gov/national-security/strategic-sea...
[2] https://www.af.mil/About-Us/Fact-Sheets/Display/Article/1045...