Is it possible to get allergic to certain foods after weight loss?

is it possible I've lost about 40 lbs and I have diarrhea sometimes. do u think its possible? and why am I having diarrhea?
Is it possible to get allergic to certain foods after weight loss?
Post Opinion