If you buy the iPhone 11 right now, you will get 1 version update and that's it. You will still get security updates I guess.
While Apple does not guarantee or publish a guarantee about how many years of major OS versions and security updates iPhones will get, it’s typically been about six or seven years of major OS version upgrades (from original device release) and another two or more years of security updates. The iPhone 11 was released in 2019 with iOS 13. When it’ll stop getting a new iOS version is up to Apple.