Yes that's clearly why trump is running.
The sad part is that it may work.
If these trials get delayed into the heat of the general election season (assuming trump is nominated) I reckon they will be forced to delay them until the election as they don't want to be accused of trying to influence it.
I say trials plural because more very serious indictments are coming.