Should i worry??

My 3 year old son randomly woke up coughing hard and a lot , he threw up a tiny bit on his pillow then went back to sleep. Should I be worried ?? And what should I do to treat this. I asked him if his tummy hurts but he said no.