Well it’s wrong.
You need to do (cumulative inflation)^(1/ number years) to figure out what the actual average rate of inflation was over that period.
Raw cumulative inflation is really tough to do anything with unless you’re making apples to apples comparisons for two things over the exact same time period. Even then, using average rate of inflation is better because it’s universal.