Should I be taxed on a withdrawal from my IRA if I withdrew only from my own (post-tax) contributions and not earnings?

I contributed $6000 of post-taxed funds (income saved in my bank account from my job) to my Roth IRA. I thought better of this and decided to withdraw $5000 and put in other investments, believing that only withdrawals based on earnings are taxable. Is this true?