If you are able to believe that he is going to work on himself, if he owns his behavior and then identifies what had led to it in the first place, then it is possible to work on and salvage the marriage.
He cannot expect you to be the only one changing and the two of you would have to mutually work on the relationship. If you believe that he is still grieving the loss of his affair rather than grieving the potential loss of the marriage, then you'd want to make sure that you know what you're working with. You did not cause him to have an affair. If there were things that he was unhappy with in home, he could have spoken up about it rather than doing what was suitable and opportunistic to him. If you still love him and are willing to give it a chance again, then yes, do it before you call it quits. If you do not believe that he would do his part and your feelings had changed, it would be unhealthy in forcing yourself to do something you do not feel like doing and it makes sense to move on.