No, unemployment costs is not a externality from the company. It is a public cost resulting from the layoff.
Externality has a specific meaning. It is a cost of production passed on to the customer or third party.
Not everything that has a consequence is an externality.