Is it constitutional to appoint Matthew Whitaker as acting attorney general?

As the acting attorney general, Matthew Whitaker will oversee the Mueller investigation into Russian interference in the 2016 election. But he hasn’t been confirmed by the Senate. President Trump is distancing himself today from Whitaker, as more information comes out about Whitaker’s extreme positions on religion and the courts.