A vaginal prolapse( the one before calving) is very heritable, just ask any one that runs Hereford cattle.
A uterine prolapse not so much but if a cow has done it once she has a slightly greater risk of doing it again.
So keep the calf if its good enough probably sell the cow.