I think it’s a bad idea. But it really depends on each person. Anything we see, do, feel and think can and will be used for us or against us by the subconscious mind.
While for some people eating human flesh wouldn’t be any different than eating anything else, it could cause a curse to someone else because this action will be understood by the subconscious, the same way a spell is perceived. The thing to watch for in this context are your beliefs intentions and emotions towards this experience.
I hope that makes sense.
From a spiritual point of view. The act can be used as part of a ceremony or ritual. In this case it will have whatever spiritual effect you intend for it.
You’re free to try if you wish, just make sure you have the right mindset when you’re doing that, or there’s a specific spiritual purpose, or it may cause lots of problems you do not need.
Personally I wouldn’t do it because I work with death energy, and that requires respect for the dead and anything related to it. Including dead bodies.