Chilis are from the New World, and as CMosychuk has answeredhas answered, belong in the Capsicum genus. Their name derives from the Aztec Nahuatl word for the plant chilli
, and this name has been used by the Aztecs to refer to the plant prior to Spanish contact and spread of the plant to the Old World.
The pepper, however, belongs to the completely unrelated Piper genus, and the plant originated in the Old World. Its etymology derives from the Sanskrit word pippali
, also referring to the plant. As the Etymonline entry suggests, the word "pepper" was also used to refer to the Capsicum plants when they were first introduced to the Old World, perhaps due to their similar spicy taste.
Therefore, it is not the case that chilis are peppers, since the Capsicum genus has no recent genetic relation to the Piper genus.