Don’t you have to be a convict to get a pardon?
No. A POTUS can pardon for any federal (not state) crime that has already been committed. He can do this before or after a trial.