Even if a penitent is mouthing the correct magic formula for Salvation, should they be part of a manifestly false religion and the correct incantation was come upon by fraudulent intent and willful ignorance, the Mormon will nevertheless be damned.
The granting of a pardon is an imputation of guilt, and the acceptance a confession of it.