You can carry candy freely. The main thing is to stay within the total allowable weight of hand baggage. A filling also does not matter: you can take candy with cognac or liquor, but then there is a chance of a little longer delay at customs.
Cakes, lukum, and cakes are also allowed. Remember the secure packaging, preferably store-bought. On some international flights, especially to Europe, the cake is subject to customs restrictions on the import of dairy products - check separately for each country.