Retirement tax questions

If you have a loss in the traditional Ira can that reduce your taxable amount if some of the contribution was before taxes ? ie; contribution $5000. only $1000 (non-deductible) after taxes, account is only now worth $4000 due to an investment loss.