Yes, the virus always travel on vectors such as droplets, which are much larger than the actual virus.  The masks minimize the passage of droplets (or blocks them entirely in the case of N95 masks), and thus minimizes or blocks the viruses traveling on those drops.