There is a way to add your food to the Samsung health but I think it's not a comprehensive or high quality
In relation to Apple /iPhone there are multiple High quality 3rd party Apps which can exactly do what you are asking, however not sure with Googlestore
Try Calorie Counter app