In the checkout process, you are able to select how many year you want to register your name for. Theoretically, there is a limit to how many years you can register a name for. But that number is so large that you are able to buy a domain for more years than there are stars in the universe. The only constraint at that point would be the cost. Hope your wallet is big enough ;)