It’s definitely edible (safe to eat) but as other posters mentioned, it’s one of those ornamental anuum pepper varieties and are too bitter for most people. Other anuums include jalapeños, Serranos, shishito, and Jamaican mushroom. For contrast, the other common types at: chinense (habanero, ghost, reaper, etc), fructecens (tobasco), baccatum (lemon drop, Brazilian starfish, ají amarillo), and pubescens (rocoto, manzanas).
It’s usually impossible to identify the exact pepper species you have, but I’d bet dollars to donuts it tastes almost exactly like Bolivian rainbow, if you’d like to read other peoples reviews online.
Let me know if you have any further questions on the subject! Growing hot peppers has become a bit of a hobby of mine, if you can’t tell :)