Yes, virus particles can get through masks, but the point isn't to be 100% effective. Masks reduce how far you spread the virus into the air and how much virus people are exposed to. People exposed to less virus particles are less likely to get sick and have fewer symptoms even if they do.