Yes of course, unless they are already liberated or Buddha. This is why it’s often not a good idea to just give everything away when you learn about Buddhism. It’s easy to give away your possessions but not so easy to give away your attachment which probably pops up as regret at what you did.
Meanwhile if you can give up your attachment, there’s no need to give away the possessions or the things you are attached to :).
Losing your attachment in this sense actually means greater love and compassion and more happiness and pleasure and enjoyment too. It’s not at all a Vulcan like repression of emotions and feelings. That again is something one might well do when one learns about Buddhism - try to push feelings and thoughts and emotions away thinking you mustn’t be attached to those. So then you get very attached to the idea of being free of emotions and being calm and peaceful - and that then means you are in a worse state than if you didn’t do that, because it is really hard to spot that kind of an attachment.
It’s not really what we in the West think of as attachment, but it’s a hard word to translate. When we laugh a bit at ourselves and all the antics our minds get up to to try to prove that it is making progress in understanding what it is, and doing something about it, then there might be a chance for some chink of understanding to come in :).
Meanwhile there are many other things one can do along the path :). Generosity is good. But if you think you can get rid of attachment by giving everything away - that doesn’t work.
It can help you to find a simpler way of life with fewer complications which is why Buddhist monks and nuns renounce possessions when they take their vows. But there are many other Buddhist paths and that’s just one of them, and if you think that by giving away everything and becoming a monk or a nun you will instantly be rid of all attachment you are in for a big disappointment. It’s not as easy as that.