can I forgive

My husband of 6 years ago came to me and said he wanted a divorce. We have been separated for a month but still live together raising our child and splitting the bills. He had a friend that he was hanging out with. She is a female. Now he doesn't talk to her anymore and he told me they did have sex after the whole month of just saying he's friends with her. He finally told me the truth. He has been treating me very well now that she's not his "friend". How do I forgive him for all the hurt he caused me? Do I try to fix our marriage or am I just his back up plan because him and his friend didn't work out?