Money can't buy you happiness, but lack of money definitely contributes to misery.
Once you've covered the basics of accommodation, household bills, food and other necessities, if you've got more than that, money does give you choices.
It will mean you have more choice about where you can live, what size house you can live in. You will have more choice about whether and how you can travel - which will mean you have more options about what jobs you can get, and thus more opportunities to earn more money or be in a more fulfilling job.
It gives you access to a wider choice of educational options, be it being able to travel to better schools, or afford university fees or to go to college in a town with more expensive student rents. It means you can afford to do extra study that you fund yourself, and you can find the time for it by being able to afford childcare.
It gives you more options about what to do in your spare time, be it going out to the pub and meeting up with other people (social contact is important, and friends definitely contribute to happiness) or going to evening classes, or a choice of sporting activities, be it running, swimming, football, horses, sailing, whatever - some of these can be very expensive. Or you can buy art materials, or expensive wools to knit with, or quality ingredients to cook with or travel to art galleries and pay the entrance fee for exhibitions, or buy designer clothes, or a ton of other things which just won't be options for you if you're having to count every penny just to keep a roof over your head and eat at least once a day.
Doing things like that may mean you feel more fulfilled, and if you feel more fulfilled, you're likely to feel happier, so in that sense, money can contribute to happiness. I'd rather be miserable with money than without it.