Very often, people give up on their goals. Many shy away even before they take any step to actualize their goals, and a few right after their first failure.
However, the men and women whose names echoes throughout history failed a dozen times before they achieved the very success that brought them to fame. They had to figure out that failure does not mean that the goal is unreachable but that it’s just a call to change of plans and methodologies.
Yes, if it didn’t work out for you don’t stop pursing your goal, just change your way of pursuing it.