Baby has a cold and won’t eat

She’s nursing but won’t eat any physical food. She’s also really sleepy as didn’t sleep well at night. Poor thing. Is this ok? Is it ok if she skips meals?