Does wearing a face mask prevent colds from spreading?

Does wearing a face mask prevent colds from spreading? Does wearing a face mask prevent colds from spreading?