If your cake was cooked to the proper temperature, chances are it is still edible even if it sunk in the center. Check that it’s baked through the middle, then try a small piece of your cake. It might not taste good if the ingredient measurements were off. Notice the texture to make sure it’s not too dense or spongy.