Not usually. But it depends what it says in your warranty if you have an extended one. Also depending on the dealership that you go to, they may offer you a loaner while the X is being worked on.
I have had all service done at a single dealer and they have been very good and offered me a loaner at times when I have asked. Sometimes it has just been a used car off the lot that they have let me "test drive". They have been very good to me.