When my throat was swollen, I called my hospital's emergency desk. They told me to do salt water rinses and prescribed a pregnancy-safe syrup, so definitely consult your hospital team.
Throat infections can sometimes cause fever, which isn't good for the baby. Please be very careful and let your gynac know so they can give you a safe treatment.
For tonsils, doing warm salt water gargles is very safe and helpful. But please don't take any self-medication or antibiotics without your doctor's green light.
Keep a flask of warm water with you at your desk and sip it throughout the day. If the pain is severe or you run a fever, go to your doctor immediately instead of letting it drag on.
Actually, my doctor said most tonsil pain is viral and resolves with warm fluids and steam inhalation. Avoid any over-the-counter pain killers or antibiotics unless specifically prescribed by your gynac.