Ahh I just freaked out.. Help

Natalie31o
Okay so my son is about to be 3 weeks tomorrow, I I was breastfeeding him right now. He fell asleep on my breast so I removed him and laid him down. The good thing about me is that I like to watch him sleep.... And like two minutes after I had laid him down he started throwing up the breast milk. I freaked out because it was a lot, I grabbed him and turned him around and rubbed/tapped his back.. Soon after he wanted me to breastfeed him since he was moving his mouth and rubbing his mouth on my breast. But I refuse to breastfeed him I'm thinking about giving him his pacifier... But I'm not sure since I'm a first time mom....
Is this common or should I contact my doctor?????