Well, according to the CDC, who certain people pick and choose from when it suits, yes, they have been shown to be effective, along with other safety measures.
I don't actually wear a mask to protect myself, but rather others. How have you not gotten that yet? That's the primary purpose.