I don't think you could ever teach a dog the word "no." It's your tone of voice that you're teaching him. It doesn't matter if you say yes, no, or you're my favorite! if you use the firm tone, he'll understand to stop.
When ever my boxer do any stupid things I used to shout loudly the word "no". After hearing this word my boxer will see my face I will be starring at my boxer for few seconds. It will understand my anger because of its stupid attitude.