Did it work? Yes it did. He won the Presidency doing just that. Results don't jive with your opinion.
It's not a matter of "did it work" imo, it's a matter of did he come out of it unscathed. Yes he did. He won the presidency in spite of throwing insults. Middle America finally wising up is why he won the presidency.