Yes, it could hurt or kill your Yorkie. Hawks too. (We actually had a hawk fly through a screen door and onto our deck after one of ours with us standing right there!

)
Even if the dog is too big for the bird to fly off with--they have long sharp talons that injur and some kill and eat on the ground if the prey is too big.