Sure, but that doesn’t help the dudes who never get divorced, and end up raising another man’s kid unknowingly.
About 30% of paternity tests come back negative (i.e. not the father). Granted, there’s selection bias there, but it’s still a shockingly high number.