Yes.
Giraffes are ruminant animals. These creatures chew their food twice: first, they swallow already chewed pieces, and then they return them from the front sections of the stomach back to the mouth. This physiological process is necessary to extract more nutrients from the food.
However, like other animals, giraffes can experience true vomiting in cases of poisoning or inflammatory diseases of the digestive tract.