While Samsung has adopted a two OS update policy for years, there are still ways of getting new versions of Android on older handsets. The Galaxy S8 and Note 8 are more recent examples of this, but so are the much older Galaxy S II, or Galaxy S2 as it is more commonly known, and the Galaxy Note 3.
https://www.notebookcheck.net/The-Samsung-Galaxy-S2-and-Galaxy-Note-3-can-now-be-upgraded-to-Android-10.452871.0.html