Yes, gratuity can be paid before retirement in certain conditions such as when an employee resigns after completing 5 years of service in a company or if an employee dies while in service, the gratuity amount will be paid to the nominee or legal heir.