There was a debate about whether self-pardons were valid for a while, but given that pardons are a constitutional authority and presumed absolutely immune to not just crime but also discovery then I guess the trick is making sure only federal laws are broken.