You're only kind of right. The mining algorithm cares not one bit about number of transactions, so higher tx volume has no direct effect on the mining energy expenditure. But it does have a second order effect.
More transactions usually entails higher fees (as people compete for block space to put their transactions in). More fees means higher mining rewards, means higher incentive to mine, means more mining activity, and, therefore, higher energy expenditure.