Absolutely! I remember my mom had terrible headaches when she had to give up caffeine because of a heart condition. You may want to try having some to see if it helps with the headaches without affecting the T. I don't drink caffeine so can't blame it on that.
however he did an xray. Would he be able to tell if it was tmj?