Yes. I probably didn't use the word "resign" as such but there was a time in my career when I went to my manager's manager or maybe another level up the chain and basically said I could not work for my direct manager. I got my way even though it involved working in a bit of a backwater for a time. But I was prepared to leave if I didn't get my way. (Didn't hurt that I knew said manager was a bit on the outs with the exec who I knew quite well.)