Iphone showing notifications on lock screen?

I have an iphone 6 and when i'm on the lock screen (as in before putting in a passcode) i can swipe from the top of the screen to the bottom and see all of my notifications. Can i turn this function off?
ta.

Go to settings and then notification center then select the individual app that you don't want to see notification on the lock screen for then you are gonna see SHOW ON LOCK SCREEN turn that off