In Alma 39, we are told that it is not enough just to know what it right. We must refrain from sin because sin can effect others' testimonies. We must not lead people away from righteousness through our iniquity.
Those who live what they know can be cleansed from the bonds of sin and work miracles.