Yep! When I was studying to be a homeopath, which is all about energy, I learned that it's the baby's energy that creates food cravings and aversions during pregnancy, because its energy is so strong and powerful as a new little being.
Often those cravings/aversions will continue for the baby after birth.
Another thing about homeopathy - it's all about not suppressing symptoms, cravings, desires of any kind etc. (within moderation, e.g. if you crave wine, have a little but don't drink the whole bottle!).
So it's great that you allowed yourself to have what you were craving - even though it went against your choice to be a vegetarian.
Thank you for sharing this interesting story!