Question

I know this is probably a stupid question but honestly I just had no idea how I would have worded this if I were to google search this topic without it being a mile long. I wanted to ask, if someone is unable to breastfeed one or some of their kids does that mean when one of their kids grows up and gets pregnant that they will also have problems with breastfeeding? Like is it genetically related or just case by case with each pregnancy or both?