It's risky to undergo surgery with a tooth infection due to potential complications. Consult your dentist and surgeon for a safe approach.