It does have a goal if you want it too. There's a place called The End that you can only get to once you've got the right armor, Ender Pearls and you manage to find a Stronghold so that you can find a portal to The End. After that, you have to slay the Ender Dragon. And then you get a poem before being able to continue your game however you wish.