For the first year or two, that’s common. Getting feature updates for anything even approaching >5 years is near unthinkable for Android devices however. You only get that with custom ROMs and even there it’s only half of the story as they can’t provide security updates for vendor blobs which is kind of a big yikes.
The iPhone 8 will get cut off the newest feature updates in the upcoming iOS 17; 6 years after launch. Security updates will likely be available for years to come. For comparison, my OnePlus 5 from 2017 (1 year younger) received its last update (any update whatsoever) in 2020 (3 years ago).
With an Android device, you’d be lucky to get security patches in any regularity at all, much less >3 years after release. That only happens with a couple few vendors who actually care such as Nokia and maybe Google (to a degree).