Can expenses from a side business (for profit) lower W2 taxable income?

Can you have expenses from a side business that is for profit, but hasn't generated income the first year, to lower W2 taxable income?