Does suffering have a purpose?

“The suffering ends when it [the suffering] has become bigger than the fear of facing and going through the pain that has been causing the suffering.” If there was no suffering, we wouldn’t look for the wound, however, with no wound, there would be no suffering. In that sense, suffering is created to bring us back to wholeness.