Most definitely, I had a temporary cap put on and developed an incapacitating headache in the back of my head. Doctors “MD’S” stated it was stress etc. and prescribed pain pills. Day came for permanent cap, temp came off, pain instantly went away but came back after permanent cap went on. I made the dentist root canal the tooth and headache went away. Yes, a bad tooth can cause terrible headaches.