Yes, a president can pardon someone for crimes they haven’t actually been charged with

Under the Constitution, the president has broad power to pardon someone before they are indicted, convicted or sentenced for a federal offense against the U.S.