Not immediately after eating I hope, that would do more damage than not.
Brushing right after drinking acidic soft drinks or soda is meant to be much worse for your teeth than not brushing.
That said, flossing gets rid of obvious stuck gunk, so I do that (with care to avoid damaging gums).
And it's not just carbonated beverages. Tea also is acidic
In part too the sugar with acid combo is particularly impactful, the sugar acts as an abrading agent. Hence, smoothies are something to take care with too.