Tummy problems

Sooo I know people say that beans can give you gas, but can they give you diarrhea as well?? I ate more beans than usual yesterday and at night and this morning my stomach was rumbling and when I went to the restroom I had diarrhea and it was horrible obviously as you can imagine