You can, but they must be thoroughly cooked. Raw or slightly undercooked beans are toxic.