Yes, if you need to bake it in advance, freezing the cake will work beautifully. Wrap the baked and cooled cake tightly in plastic wrap and/or foil and store in the freezer for up to 3 months.