Nobody knows, including the president. Trump thought he could pardon himself. There aren’t any restrictions other than it must be a crime with federal jurisdiction, the only jurisdiction over which the president has direct power. He can even pardon people in advance.