Birth control problems

When I got on birth control I started getting a lot of yeast infections I would take medicine for it but it would come right back I keep my self clean. I don’t know if it’s the birth control or if it’s me having sex that’s causing the infections please don’t be rude if you give me answers. I take the depo shot every three months do you think it’s causing the yeast?