Juliana,
it's normal. Some dogs are afraid of loud noises, especially fireworks.
Here is a good article about yorkie shaking and when it's normal and when you need to take any action:
https://yorkiepage.com/health-and-ca...yorkies-shake/
I hope it helps!