Yes, but the correct route depends on the service law governing the employee.
Where a statutory appeal to an administrative or service tribunal exists, that remedy may need to be used first. Writ jurisdiction remains relevant where constitutional rights, jurisdictional defects or ineffective remedies justify extraordinary intervention.