Yes you can claim ITC on N95 Masks purchased for factory workers.
As per the Provision of Section 16(1) of the CGST Act 2017, Input Tax Credit (ITC) on Inputs, Input Services and Capital Goods which are used in the course of or furtherance of business can be claimed.