If you are vomiting, you may not be able to keep food down. However, it’s not a good idea to withhold food until your diarrhea goes away, as depriving your system of nutrients can make things worse and make you even weaker.