Of course masks protect the wearer, in varying degrees depending on the type and how they are worn.
Examples
FFP2 and FFP3 give a high level of protection
Cloth / material, lower level of protection
I can't believe it when people say they don't protect the wearer. How weird to think that!