Of course he is. There's a whole lot of lawsuits waiting for him as soon as he's not president... and possibly a divorce.
I read that during the delay before Melania joined him at the White House, they renegotiated their prenup. Financially, he can't afford *not* to be president.
On top of that, he's repeatedly said he's not a good loser. lol. Pair them up - legal and financial consequences paired by an ego that's too big and can't handle losing -- he's going to do whatever he can to stay there.