No. The money that is held by courts through bail money or through other means (official liquidator or Court receiver) are interest free deposits. However courts through it's order/judgment may ask the litigating party to pay the principal or any other dues with interest to they other party.
Courts return the surety after a trial is over whether the accused is proved as innocent or guilty. Normally, court doesn't take cash as surety but any other instrument which has some monetary value on realization like Fixed Deposits, Motor Vehicle RC, House or Land papers or even Salary Slips of a govt./semi govt employee does. Hence there is no reason or logic of giving any interest. Even if the surety is taken as cash, court is not a bank or financial institution to earn from your money. Since it is not possible to earn from your surety, be it cash or any valuable, court is not obliged to pay you any interest on that.