Yes, you're right, it's a glow stick!
a glow stick has two substances in it, which are separated from each other and breaking of the glow stick makes them combine and release energy in the form of a light. This process is also known as chemiluminescence. They don't require any other energy sources!