Tooth decay from breastfeeding at night!

Is it true that breastfeeding toddlers at night can cause tooth decay? Has anyone experienced this? My son has a lip tie and his upper teeth are turning brown despite brushing and multiple visits to the dentist. He says no cavities but we keep a close eye on him. Someone suggested i wean my boy but i wanted to breastfeed until 2 years.