The president has the power to pardon. That’s in the Constitution. He doesn’t have the power to grant blanket immunity from future prosecution.
What, then, was Nixon pardoned for? He hadn’t been convicted of anything himself.