Your premise is itself a delusion of knowing the truth from a lie.
A habitual liar eventually ends up in a whirl of relative truths, justifications and evasions. An effective person must never end up in such a place.
Telling yourself things that are ultimately wrong is OK, as you will eventually learn the truth. It's at the point where you learn the truth that determines whether you will continue to delude yourself or face up to it.