KEY POINTS
  • Jim Cramer said the Federal Reserve's campaign to squash inflation is a long-term win for the U.S. economy.
  • However, companies like Walmart and Palo Alto Networks are now paying the price, he explained Thursday.
  • "The good news of lower prices finally breaking the inflationary spiral is also bad news for the profits of many companies," Cramer said.

The Federal Reserve's campaign to squash inflation is a long-term win for the U.S. economy, but investors in companies such as Walmart are paying the price now, CNBC's Jim Cramer said Thursday.

The U.S. retail behemoth, along with cybersecurity firm Palo Alto Networks and energy giant Chevron, all saw their stock prices decline meaningfully Thursday for reasons that can be traced back to the Fed's interest rate hikes, Cramer explained.