Any omnivore/herbivore fish can have peas.
Fresh or frozen is best, not canned. I usually pull a few out at super(or you can microwave them real quick). Basically you want to warm em up a bit if frozen or make em soft if they are fresh. Then shell them and offer small bits. They sink so I usually just tear off little bits and offer them to my fish. I have neons, platy, rasbora and a dwarf gourami which have no issues with this.