No, the supreme court just gave the president immunity for exactly this. This exact scenario is quoted upthread:
> Congress may not criminalize the President’s conduct in carrying out the responsibilities of the Executive Branch under the Constitution.
It's curious because this would also seem to legalize the Watergate scandal and Nixon's famous line "if the president does it, its not illegal".