If the curtain is drawn and the sundae service is over, I guess I really don't have a problem -- FAs are just people.
But the fact that you were able to see it from your seat is so disgusting.
I would not write UA, but I would have mentioned to the FA -- hopefully in a light-hearted way--that canned whip cream is not good for your health. Hopefully he would get the message.