As so many others have said "it depends"
When you don't have much money, then you are far more conscious about "what else you could have bought" with that same amount of money, so, when we were skint then I'd say 'yes, I could have used that for heating, or some replacement shoes' or something.
When you are more comfortable, then I think - if you have the money, and it's something you enjoy, then it is worth it if it gives you pleasure.
I do think buying a takeaway coffee on the way into work every day seems a waste when you can just brew up when you are at work
As others say, though, 'meetings friend for a coffee' or 'going out for lunch' you are paying for more than the actual coffee. You pay for the 'experience'. The opportunity to sit and natter with friends. (Or for those that prefer, sit and read a book in peace for 1/2 an hour). I don't do it often, but when I do meet a friend for lunch, or even a coffee, it is worth FAR more than the money I pay, as it is almost like doing a therapy session.