Yup. In Sri Lanka we calls chilies "miris," and pepper "gam miris" (translation: village chilies).
I guess folks originally used pepper as the way to set their mouths on fire; and once introduced, happily jumped over to chilies as a much better way to do so.