No, this could not occur. I would run this by the pediatrician. It may have to do with food ingestion prior to bedtime, or with
cryingColic and crying
Crying in infancy on waking up and vomiting in response to the stress of crying. But dreaming per se and reacting to the dream directly will not promote vomiting.