You can. An iced cake will be fine for a day or two. If you need to make it further ahead of time make the cake layers, wrap and freeze unfrosted for up to 3 months, then thaw and frost as close to your event as possible.