Not totally. You can set the iPhone up to not show a preview of the text message, but it will still show who sent it if that's your goal to hide. All of the settings for texts is in the settings/messages menu.
I'd already changed it so it just popped up with who had sent it. I have nothing to hide with the messages, just find it irritating if I am in a different app the message pops up over it!