The answer to the question above is yes. In order to understand this claim, we can look at the following example, which focuses on math.
In many cases mathematical errors provide us information. For example, if we look at a statistical study, because of the existing inaccuracy caused by sampling, there will always be an error range.
Plato once defined knowledge as ” a justified true belief.”
In the case of an statistical study, we could consider the error the true belief. We can justify it’s veracity with the following statement. The error exists due to an inaccuracy in the mathematical results, originated because not all of the possible/available data were used to do the calculations and obtain the study’s results.
In this example, the error provides us information about the reliability of the study.
At first, we may consider the truth, however we may consider there is a “Lie” or within this truth based on it’s inaccuracy, which would be the error, as the study does not perfectly reflect reality. Nonetheless, the error can provide some truth about this inaccuracy and therefore, the reliability of the study. Hence, yes, we may gain knowledge and information from a lie ( the error).