That depends on the level you're playing at.
Kickstart & Lifestyle: Beans & other legumes (e.g. lentils and chickpeas) are compliant in moderation
Performance: Not compliant
Be careful with packaged beans and other legumes - canned, especially. You will have to check all the ingredients against the list of suggested and non-compliant foods. Preservatives, for example, are non-compliant on Performance level.
For more information, view the complete Suggested and Non-compliant food lists for your level:
Still trying to decide what level you'd like to play at? Here's a handy comparison of the three levels.