Yes, you have to deduct ALL ordinary and necessary expenses from your business. You are not allowed to leave out some business expenses in order, for example, increase your income or your earned income credit.
Please read this IRS document for more information.