Yes. Starch and sugary foods are the most likely to leave behind bacterial food residues that cause decay. In turn, bacteria release acid into the enamel.
What to do: Brushing your teeth immediately after eating sugar or carbohydrate weight is the best way to prevent bacteria, but if you are not close to the toothbrush, rinse your mouth with water to help neutralize acid and loosen the residue.
Another simple solution: popular in a sugar-free chewing gum. Chewing gum accelerates saliva production and has antibacterial properties.
Finally, if soda (diet or routine) is your side effect, drink soda through the straw behind your mouth so that sugary or acidic liquids bypass most of your teeth.