Go through process anyways

What if someone who was “preemptively pardoned” was prosecuted for wrongdoing anyways? Just to get it on record that they were found guilty of a crime but couldn’t be punished?