Unfourtunately, you would still become confused. Rock Head only prevents recoil damage from moves like Double Edge and Take Down. If you want an ability that prevents Confusion from Outrage and Thrash, then get a Pokemon that has the ability Own Tempo. That way you can deal maximum damage without getting confused.
Hope this helped =)