'Goal' tends to focus more on the end, while 'aim' tends to focus slightly on the means, but they seem functionally synonymous to me here, Henk. The second sentence would be better by changing to 'the aim/goal of succeeding '.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.