Is this ok?

Can i take excedrin and Pepto Bismol? I took excedrin an hr ago for cramps and I usually get diarrhea on my period.. can I take pepto bismol as well?