Can I give my baby cake or cupcake at 6 months?

For her half birthday I was going to do a cute little half cake and let her dig in. Is it safe for babies to have cake? All she’s had so far are bananas, Apples, and carrots purées