I'd argue that doing so masks the true causes of price rises. Prices go up because companies make the choice to raise their prices. Sometimes this is because their own inputs became more expensive but in many more cases it's because the people running the company want to increase profits.
By hiding the choices made by people running companies behind this opaque number called "inflation" that people perceive as somehow controlled by the government we've allowed companies to get away with making decisions that increase profits for wealthy executives and shareholders at the expense of people who rely on the goods produced by the companies.