Yes, you can make text messages private by setting and clicking on Lock Screen Appearance. Then, click on Show Previews. Further, click on never. It will notify you when you receive a new message but will not show you the details.