Will wearing a mask protect you from the coronavirus?

You see more people wearing them in public, but will wearing a face mask really protect you from the coronavirus?