Using Schedule C when employer switches from 1099-NEC to intermediary company providing W-2s

The company I work for as an independent contractor used to send me a 1099. They now use an intermediary company to pay me, which provides a W-2. Can I report the W-2 income on Sch. C so I can deduct expenses against the income?