Can you eat cake while pregnant?

I think u can, as long as its fully cooked. I know you can't eat cake batter because of the uncooked eggs.