Yes, it has topped itself, some plants just do this for whatever reason, either the main stem or it can also happen on the branches (most often).
No need to worry, it should grow just fine.
I have had plants do this and self top the branches too, multiple times on each branch and you end up with a super cropper without having to do anything!