text: can you take keflex for a tooth infection?   i have taken keflex for infection before i had a root canal on an infected tooth.  the key is to take the medication for at least a week before you go back to the dentist, so that the infection has time to be eliminated before any dental work is done.