Legumes should be cooked thoroughly before consumption to improve digestibility and eliminate any anti-nutrients present. Soaking them overnight can also help reduce cooking time and enhance nutrient absorption.