The "right" decision depends on more information. For example, hitting on 20 is the right decision if you are betting no money or money that isn't your own.
It was the right decision if you had been counting cards and you had information that the next card would be an ace.