It should works as a topping or frosting the outer layer only. I would not use it as a filling between two layers of cake.