Which lasts longer: ground or unground coffee?
That's correct. The greater surface area of ground coffee allows more trapped carbon dioxide to be released, taking aroma compounds with it, as well as making way for oxygen in the surrounding air to oxidize the aroma compounds and coffee oils.