Yes a person is eligible to withdraw gratuity pay after 5 years of service but only when he/she retires or leave a organisation.