Create stored procedure that contains newlines with a oneliner sql statement
Yes, you can do something like this with dynamic SQL:

DECLARE @SQL NVARCHAR(MAX) = N'';
DECLARE @NewLine NCHAR(1) = NCHAR(10);

SET @SQL = @SQL + N'SELECT * ' + @NewLine + N'FROM sys.databases AS d ' + @NewLine + N'WHERE d.database_id &gt; 4;' + @NewLine;

PRINT @SQL;
EXEC sys.sp_executesql @SQL;