Can you eat cake that the flour used is way past the expiration date?

You shouldn't eat cake if the flour used to make it is way past the expiration date.