In theory ok, but you gonna lose lots of air out of the dough, so it may not rise as well/ be as fluffy. It's best to bake straight after mixing (unless it's a yeast dough - then the more time the better). Maybe bake it tonight and decorate tomorrow? Sorry, I'm not much help.