This is absolutely true. Our daughter has suffered on and off with
chronic constipation since she was about 9 months old and is now 2 and a half. In the beginning, if she was constipated for more than about 4 days, she would start to vomit whatever she ate that was solid. She handled liquids much more easily, but even they would come back up sometimes. In short, our
pediatrician explained it like this: the intestines can only hold so much that eventually, there isn't any room to continue to digest the food, so it was bound to come back up. The body needs to expel things in one way or another, so then it started happening to our little one. Since then we've gotten a handle on what caused her issues. Dairy was a big problem as were eggs. On top of that, most animal products seem to irritate her bowels and cause irregularity as well, so as a result, she is now on what would be considered a vegan diet and is monitored by a gastroenterologist regularly. The GI got involved because she was diagnosed as failure to
thrive and the general consensus was that she wasn't getting the nutrients she needed because they weren't being digested properly. Anyway, we fixed that and she's thriving now and only becomes constipated when she eats something she's not supposed to (which sometimes happens when people don't understand what she has gone through, for example, at preschool) or we take a trip as travelling seems to upset her bowels as well. Anyway, in short, yes,
vomiting and constipation can very much be related. :)