Yes! There are a couple of things you need to consider if you plan to eat your 3D Prints.
The metal parts that would come in contact with the food are food safe metals like stainless steel and aluminum. For the plastic part I recommend you to 3d print them out of a food safe plastic.
There are ways to make your 3D printed extruder parts more food safe, like spraying “Food-Grade Silicon Spray” on them or, even better, dipping them in uncured Food-Grade silicon and letting the silicon dry out. This would give your 3D printed parts a smooth food safe surface.