I am worried I won’t be able to breastfeed

My mom had issues with breastfeeding ( could not produce milk no matter what she tried) I have it in my head that it’s genetic, because someone made a comment but I really hope not.