All cats tend to throw up to get rid of hairballs or after they eat grass. While vomiting is normal, excessive vomiting is not. If your cat is throwing up too often, that could be a sign of health problems.
Check your cat’s diet and see if it’s getting enough fiber. Also consider hairball reduction foods or medicine that might reduce the number of times your cat vomits. Generally if your cat is fine with throwing up on your floor and asks away behaving normally, everything should be fine except for your rug with cat vomit all over it.