I don't see why not.

They still have to be approved by Congress, and if they are qualified for the job and the President trusts their counsel and abilities there should be no problem.

Robert Kennedy was an excellent Attorney General (and would have made a fine President too!).