Pregnant??

Have a few questions I need answered for my friend. She’s been having symptoms, she thinks she’s had a miscarriage, but is still throwing up after? Her vomit is foamy & just regular vomit. She’s having migraines. I need answers