While it is best to avoid all sources of caffeine when taking iron supplements, if necessary, you may choose alternative options such as decaffeinated tea or herbal teas that do not contain tannins which can also affect iron absorption.