The President can name any senior Justice Department official as long as that person has served in a high level position for at least 90 days.
The person appointed as acting AG can not then be nominated to be Attorney General, so Whitaker will be replaced as soon as Trump nominates a permanent AG and that person is confirmed by the Senate.