Probably a stupid question

Can I have tea? I’m 29 weeks pregnant and in the beginning was told by my doctor to completely avoid caffeine.. can I drink tea tho?