I would say in "An item can have sub items", "Can have" expresses that there is an ability of having several sub items... while in "An item may have sub items", "May have" rather expresses incertitude. This item may have sub items (but I don't know exactly, you should check it out).
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.