When you have poop that contains undigested food that could be an indication of a health issue that needs addressed by a doctor.
Having undigested food come out in your poop usually means that the food you're eating is passing through your digestive system way too quickly and not being properly digested before it's time to poop the waste out.
Sometimes a bit of undigested food such as high fiber foods including corn can normally come out in your poop and that is considered normal.
But if you notice a lot of other foods not being properly digested and coming out in your poop instead then it could be an indication of a digestive health issue.
If you notice any other symptoms along with the undigested food such as changes in bowel habits, loss of bowel control. persistent diarrhea etc then see a doctor about it.