Yes, the Z diagnosis code may be used as the first-listed principal diagnosis code or secondary code, depending on the circumstances of the encounter. For additional information, refer to Chapter 12 of the ICD-10-CM Official Guidelines for Coding and Reporting manual.