Yes. You are entitled to gratuity for the fractions of the year in proportion to the duration of employment.