If like me you scrape the mixing bowl out and eat the raw ingredients when making a sponge cake. Then you have your answer. Although some people might have concern if you were giving it to the"very young" or the elderly/frail.
When raw egg is mixed with certain ingredients - in your instance sugar, it ceases to pose any risks of salmonella etc. I'm not a 100% why, but as someone who makes cakes as a hobby, it horrified me to think of how many frostings call for raw eggs.... if you google it, you'll find the sciences behind it
I made some in the end with no eggs.... Lovely choc sponge sandwich with raspberry jam in middle with some buttercream, and loads of buttercream on top with a pile of fresh raspberries. It does look yummy if I do say so myself!!