You aren't really baking a cake in an Instant Pot, you're steaming it. The cake will be moist -- which works for something like bread pudding -- but you won't get a nice crust on the cake or the chewy edges that everyone fights over with baked brownies.