Artificial intelligent assistant

Is the male bee's penis homologous to the female bee's stinger? Considering that when a bee stings it loses its stinger and dies, this is similar to the male drone losing its penis and dying after copulation. It also seems similar that each event basically rips the abdomen open. Are the two structures a homologous pair?

After a little bit of digging I was able to find a couple of facts that seem to verify that the drone bee's penis is in fact homologous to the worker bee's stinger:

This Wikipedia article about the stinger that says a honey bee's stinger is "a modified ovipositor as in other stinging Hymenoptera".

This book (actually about soil arthropods) states very specifically that, "The ovipositor, with which the female lays her eggs, is homologous to the male's penis.".

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 56325a37805ff96c2b6c92f253a5b454