You can learn how to accept failure or find the means necessary to always succeed. However, it will be your definition of success that will serve as the measure of your integrity. Failure is rarely preferred but not necessarily wrong; Success is favored but not always right. For one to succeed while losing their integrity is failure in itself.