he's not yet the president, trump,
so he can still be sentenced.
the immunity for presidents only kicks in on jan 20.
when he takes the oath and becomes president.
until jan 20 he's not the president, and there's no immunity for president-elect, so he can still be prosecuted and sentenced for any pending criminal charges:
""Trump’s sentencing, which would be the first of any former president, is scheduled for Nov. 26. ...
Trump’s attorneys believe his election as president compels the dismissal of his criminal prosecutions.
“The stay, and dismissal, are necessary to avoid unconstitutional impediments to President Trump’s ability to govern,” Trump attorney Emil Bove wrote in an email to the judge.""