Can I Avoid Capital Gains Tax if the Proceeds from the Sale of Stock Are Put Into a Roth IRA?

I sold stock that I had purchased under an employee discount program. I hadn't held all of the shares for over one year, so I anticipate that the short-term gains will be taxed. Can I avoid that tax by immediately putting the money from the sale into my Roth IRA?