Genetic test

Ana • Hubby and I been trying for over a year. Still no luck. Been together 9 years and counting.. Miscarriage at 5months
I miscarried back in March of 2015.. Only made it to 8 weeks. Never saw anything on the ultrasound. Then got pregnant again in July 2015.. My son's kidneys failed 😭 and my son was born December 2nd. Still grieving the loss of my son. But now my OB wants me to do genetic testing .. Will this solve my problem of losing babies? I don't think I can go though another miscarriage.