Lesson time! I love to get intoghe grow science of things, so please excuse my enthusiasm.
Plants have these things called phytochrome. What phytochrome does is let the plant know when the days are getting longer or shorter.
So, basically, plants know their light schedule. Be it indoor or outdoor.
Their phytochrome also tell the plant when it needs to flower. Some plants react and tart to flower when the days get longer, some plants start flowering when he days get shorter, and a few plants are what is called phyto-neutral. They start flowering based on time alive, not the sun cycles.
Cannabis starts flowering once it's phytochrome sense a drop in sunlight.
Now, to a swer your question:
Yes, your plant started flowering. A lot of plants, when grown outside, start getting ready to flower the day after summer solstice (if you are in the northern hemisphere, fall solstice for the southern hemisphere). Your plant's phytochrome sensed that the days were getting shorter, so it wants to reproduce.
Here are a bunch of links you can use if you would like to do some research:
https://www.google.com/search?q=phytochroma+in+cannabis&oq=phytochroma+in+cannabis&aqs=chrome..69i57.12231j0j7&client=ms-android-americamovil-us-revc&sourceid=chrome-mobile&ie=UTF-8
I hope this helps!