Can’t eat junk food anymore


Hi guys! These summer I was totally killing my health (my bf was buying me junk food like every day) and it was pretty expected that I’m gonna get smth like a stomach bug or a stomach flu or whatever the name of this sickness. i have been vomiting on 14 of August (had a huge temperature and couldn’t even drink water) and on 28 of August too. Nothing of these lasted more than 1 day, but afterwards I have a pains in my stomach 😣

So I was trying to eat healthy these days (vegetables,soups etc) and was feeling pretty normal, but yesterday my step father brought a pizza at home, I ate one slice and in the evening I felt like vomiting (but I didn’t) and my stomach was growling. My question is:

Is it normal for stomach to reject bad food?