Yes, it is essential to do so. For the most part, you can refrigerate cupcakes once you have wrapped them properly. In addition to that, you can keep frosted cupcakes in the refrigerator for around four to five days.
It is always best to frost the cupcakes hours before the party. Doing so will help maintain the frosting’s freshness.However, if you do not have the time, it is convenient to prepare everything in advance.