SQLite does not change strings by itself; as long as you don't explicitly change them with some function, they are treated similar to blobs.
If you have a string like "Hello, world!\n"
in your code, it will keep that newline style.
If you read the text from a file, it depends on how your language handles newline conversions in text files, but there are not other places where Perl would implicitly convert newlines.