Yes, it is important to heat treat the cake mix before making the dough. This will kill any bacteria that may be present in the cake mix and make it safe to eat raw. You can do this in the oven or microwave, depending on your preference.