Yes, absolutely. But it does depend upon a few very important factors.
1. Remorse from the one who had the affair
2. Re-establishment of Trust.
3. Transparency which is essential to re-establish trust
4. Commitment to the process of healing as guided by Marriage Counseling & Psychotherapy
5. Patience with the process to allow long term healing and growth both individually and for the marriage.
Here is a link to a nice little New York Times article on this topic:
http://www.nytimes.com/2013/08/11/booming/when-cheatings-the-issue-remorse-helps.html