A marriage takes time, effort, and commitment by both people. Sometimes two people bring out the best in one another, and sometimes they just bring each other down. Hartwell's statements indicate he is not happy with Keshia Knight Pullman as she is. It is better the two get away from one another than continue to bring each other down.
Yes, Ed Hartwell divorcing Keshia Knight Pullman is the right thing to do if he wants a divorce. The marriage is over so it is better for him to get a divorce then it is for him to cheat. All marriages do not work out and this marriage is a good example.
If the two people in the couple don't see eye to eye on something and it is a major problem divorce might be an option. There might be a possibility that they just grew apart over the years and can't get back together on the same level. I don't know what is right for the two people involved. They have to decide for themselves.
It seems like he is divorcing her because he does not want to have children. This is a terrible and misogynistic thing to do. She is pregnant and he needs to stand by her in a difficult and vulnerable time for her rather than throwing her out on the street.