Do masks protect against new COVID-19 variants like omicron?

Do the masks we own protect us against new variants like delta and omicron?