Pregnant and worried

I feel bad, like I can't keep anything I'm eating down and like everything is developing right now and I'm worried I'm not giving the baby what it needs. Like I ate an apple and it was up in an hour. Last night I threw up 6 times and I had my boyfriend bring me pants to work because I literally threw up so hard I pissed myself a little... I haven't ate anything that hasn't come back up since yesterday morning.... Just need some support here that I'm not harming my baby....