Nothing is ever in vain. If you have done something, it means that at that particular moment in your life, at that particular stage in your development, it made sense. And if it seems to you that you could have done something differently, you know that you could not.