Yes, provided it is sugar-free gum, that is.  Chewing stimulates saliva flow, which helps to clean away food remains, and also helps a tooth to re-mineralise after an acid attack, using minerals in the saliva.