Yes, the frosting can be prepared in advance and stored in the refrigerator. Before using, let it sit at room temperature for a bit to soften, making it easier to spread or pipe onto the cupcakes.