Yes, even surgical/cloth masks will keep in a large part of the sneeze/cough virus-laden droplets (there are videos out there on this) and will also reduce the velocity/spread distance of what gets through the mask. Keeping some or most of the virus in is the most important mask function. The masks can also prevent medium to large virus-laden droplets from reaching a recipient, but likely will do little for any very small aerosolized droplets containing virus particles.
Elegant, but simple experiment on this in the article below, with hamsters, showing up to 75% reduction in transmission. And many other papers out there demonstrating mask effectiveness. Also, note that even a ~50% reduction in transmission is huge, since social distancing will get another ~50% reduction, such that infection rates can drop just from those two practices. Throw in testing/tracing/isolating to prevent flareups (which are inevitable) from becoming outbreaks and we have South Korea with 1/100th the death rate of the worst countries (and 1/200th the death rate of NY/NJ) and a nearly fully functioning economy. It's not a coincidence that almost all of the countries doing best are mask-wearing countries, largely in Asia, but not completely.
https://www.scmp.com/news/hong-kong...onavirus-hamster-research-proof-effectiveness
Also, in answer to your other comment, the CDC did not say there was zero risk from surfaces - there's actually no new data on surface transmission - all they did was more formally put surface transmission in with other low risks under a section titled, "the virus does not spread easily in other ways." It certainly implies surfaces are less of a risk, but all it really does is show that this risk is non-zero, but far less than the risk from other people. They could've explained that better, though.
https://rutgers.forums.rivals.com/t...ocial-distancing.191275/page-121#post-4569570