Cows milk protein allergy

If both my kids had a cow milk protein allergy (blood in stool/mucus that resolved when I quit eating dairy) while breastfeeding, should I assume my third kid will have the same problem? I am thinking about going off dairy when the 3rd kid is born right away since it takes so long to fully get out of my system.

Thanks!