The answer is yes. GTA 5 has a secret ending that is unlocked once you complete the main storyline missions. This secret ending can best be described as a story sequel, as it adds an additional layer of content to the game.
To unlock this secret ending, you must first complete the main storyline missions. After completing these missions, you will be given a few options that will either result in the secret ending being unlocked or being locked. The primary mission objectives must be thoroughly completed to unlock the secret ending.
After completing the main storyline, you must then complete the online Heist mission called The Pacific Standard Bank Heist. After completing this mission, the secret ending is unlocked, and you can view the alternate ending to the game. This ending ties up the storyline from the original GTA 5 and continues the narrative of the game.
We suggest you to use this guide to know how to unlock the secret ending: https://www.gamesradar.com/how-to-get-the-secret-ending-in-gta-5/.