Yes, it possibly can.
While communication is the key in any relationship with issues, change the sex can be an awesome opener to get to know other sides, your partner, and yourself.
By which I mean “spice up the sex”, do something new. Lay it all bare, pun intended, and discover new “fun”. Without going down the kinky or fetish path, I mean things like explore role play, explore locations, explore what you always wanted to do.
Obviously, this *does* require communication with your partner first. And after as well. It is not the problem’s solution, but it can act as a trigger to grow closer to each other together and start working at the other, the real issues.
Yet, as said “change” the sex. Sex in itself, more or less, will not solve anything if it is same old, same old. Yet if it brings new in the relationship, it can open new paths.
Paths which will lead to communication because, no matter what, communication is the foundation of any healthy relationship. But by all means, talk to your partner and experiment with novel ideas in bed. Or outside of it.