The OS can't affect the technology of the screen.
No but it can have a poorer lockscreen which requires too minimal a gesture to unlock or a huge target zone in which to do that gesture to unlock. If the OS allowed you to unlock a phone with the lightest and briefest tap that it could detect anywhere on the screen that would be a problem with OS having a stupid lock screen. It's an extreme example, but it shows that it's conceivable that a update to iOS could bring on different behaviour like this.