It depends on the regulations in your jurisdiction. Typically, only expenses related to earning the income are deductible.