Yes, depression can certainly make you feel sick and not want to eat and have no energy. Anxiety is closely related to depression and any really intense emotion can make you feel or be sick.
If it is linked, it will be less severe on a better day.
If those symptoms don't improve in a few days, it would be a good idea to see a doctor and make sure there isn't a medical cause.
