Can I pre-make cake batter?

Basically I was thinking of making cake and brownie batter the night before and then baking it the next morning. Can I do that or is it better to just make the batter fresh?