Yes, but also God told Eve "You may eat of every tree in the garden, but you must not eat of the tree of knowledge of good and evil."
Eve said, "We may eat of the fruit of the trees in the garden, but God said, 'You shall not eat of the fruit of the tree that is in the midst of the garden...