Emoji in text element using unicode

Is it possible to place an emoji in the text element using unicode?
Example:
var grinningEmoji = ‘\u{1F603}’;
entity.element.text = grinningEmoji;