I had flu and dropped a big chunk of weight while I was ill. Partly because I couldnt eat much and partly because you do burn more calories when you are ill due to your body constantly fighting the infection, plus water loss through temperature rise and sweating.
So, yeah, it can happen.