Probably not. The food that you see in a cookbook usually isn't edible. They use things like hairspray, paint, epoxy glue, gloss, etc. to make the food look its best. The real deal will never look the same because you are making it to be eaten, not photographed. Here's just one of many articles about food styling.
The dirty tricks of food photographers | Pixiq
Life is too short to eat processed, artificially-colored, chemically-preserved, genetically-modified food. Or maybe that IS why life's too short.