The answer is no, in the unfortunate event of a judge dying within two months of being appointed to the bench. There would be a return of contributions. Up to a certain age, contributions are shared between employer and employee. There are all kinds of exceptions and provisions in the Act, but let's just say most people pay 7% of their gross salary over 15 years. When they become supernumerary or after a certain number of years, the contribution drops to one per cent.
I will tell you what happens next off the top of my head, but it would be better to consult the applicable provisions of the Act. Judges who have been on the bench for 10 or more years are entitled to a pro-rated annual pension. That is not the full pension. Up to around 10 years, there is a return of contributions.
As for the full pension amount, the so-called rule of 80 applies initially. After that, they are entitled to the full pension amount, i.e., two thirds of their annual salary at the time of retirement.