The microwave just cooks the cake batter faster! So there's no difference in safety eating a microwave mug cake versus a cake baked in the oven. You'll just want to make sure the cake is fully cooked before eating.