tylenol for teething?

ftm, took my son who’s 5 months to the drs bc he’s been screaming his head off grabbing at his ears so figured ear infection. she said no ear infection his ears looked fine. said he’s teething and that his jaw could be hurting that’s why he’s grabbing towards his ears. today he’s been screaming his head off grabbing his ears again i’m thinking hes in pain. should i give him some infant Tylenol to help with the pain??