Hi Akhila,
Exactly, this matter depends on individual company policy because leave encashment is possible in that case only when the company has funds.
Another aspect is that some companies practice the accumulation of earned leave up to 42 days over two years. Please check your company's policy for clarification.
Regards,
Bhagwan