You can't input it in the editor, but you can save them dynamically in the game. So if a text has line breaks and you save text.text into a variable, the line breaks will be retained.
I did some testing, when outputing a string with linebreak as json it is output is
\n but manually entering it like that in a string won't transform it into a newline.