Yes, emotions are nothing more than chemicals with properties which affect your body. So yes, it actually is logical.
I think I agree with you, but just to be perfectly clear,
When we started this conversation I was using "logic" in the colloquial sense, meaning "conscious (human) planning (intellectual reasoning) to achieve a specific goal".
And now, we're talking about "logic" in a more technical (not specifically human intellect related) sense, like, when a volcano erupts or a star suddenly goes supernova.