Anyone who has trouble breathing should seek immediate medical care regardless of the cause.
This situation can become life threatening very quickly. If necessary call 911 or have someone drive you to the er of a hospital or a 24\7 medical facility. To answer your question, an infection in the mouth can cause swelling resulting in trouble breathing. People have died from these types of situations.