Yes, but only if it was really a cry for attention from a neglected partner or the person was not discovered. When people cheat, the fact that they go out of the relationship to be intimate with someone else can precipitate a number of things.
First, having satisfactory sex with someone outside and getting personal affirmation and reinforcement only serve to show the partner what has been missing at home, especially if he/she is being treated in an appreciative and desirable way.
Second, the partner left at home would have been feeling neglected and unloved while the affair has been going on. Those feelings will be building up great resentment.
Third, the cheater might genuinely believe that by not causing a fuss at home and getting their needs sorted outside, they would be helping the situation as no one would 'get hurt', which would reduce any potential conflict.
However, what can actually happen, in some circumstances, is that the attention from outside the home helps the cheater to be even more loving to their spouse, perhaps to ease their guilt. This could in turn improve the intimacy and emotional closeness between the couple. Sometimes people who cheat also discover that what they have at home is really wonderful, it just needs to be worked on with more commitment to make it better.
If the cheater is discovered, then the situation might be much more explosive, perhaps deteriorating before it gets better. It would take forgiveness first, and then putting the past behind to make things work from that point. Often people find discussion of their problems very difficult to do. If there is a cheater in the house, this is when people need to be extremely honest with each other as to why there was a need to cheat, or what the other party could be feeling. This should be followed by forgiveness and a genuine desire to use the incident as a learning tool to improve relationship and communication inside the marriage, rather than as bad pointer for the future.
Many people really find it difficult to communicate their anxieties, frustrations and hurt to partners. They clam up instead, hoping that the spouse will guess what's wrong! But it is difficult to remain silent if one party is cheating because that usually carries strong feelings of being rejected and bring matters to a head. In these instances, if the couple could avoid too much blaming and determine to repair their relationship, the competition of outside interest could save the marriage. But, should there be lots of blame and resentment, that marriage wouldn't stand a chance in the end.