Yes, you can deduct all expenses required for making the purchases. If some of that income was earned as a service fee or compensation other than purchases, then that money is taxable.
If the 1099-NEC is strictly purchases, then you can expense them against the income.