Yup, one version is always fine. 2 versions are little bit risky, but usually fine as well. 3 versions, phones are getting slow on basic things. 4 version, apple is reminding you to upgrade.
iPhone use awesome quality hardware, if stay on stock ios, the phone can last 5-6 years easily.