I was just browsing on youtube and found a video of a baby gagging which shows how they can easily sort it out by themselves. Thought it might be useful if you are worried about it as it can be very nerve wracking to sit and watch calmly while your own baby gags for the first time!
Here is the video