Sure, but that's advertising exploiting short-term feelings; a (dark) variant on FOMO, as it were. It's not "unhappy people compulsively spend the most money", because a) how do we even measure unhappiness and b) a compulsion infers the cause is singular; personal. It's not a compulsion if someone is manipulating you into doing it. That's why we call it manipulation.Advertisers seek to create suffering to create artifical need so people spend more money. Think of the fashion industry as a prime example.
Unhappy people are taught that money buys happiness, because we all are. You can't skip the middle step and equate being unhappy with spending, without studying the whole causal chain.