Are these headings semantical?

<div>

<h1>

<p>Some text comes here that does not belong to a h2...</p>

<div>
<h2>...</h2>
<p>...</p>
<p>...</p>
</div>

<div>
<h2>...</h2>
<p>...</p>
<p>...</p>
</div>

<p>Some text comes here that does not belong to a h2...</p>

</div>


I mean not starting with the <h2>s and ending with the <h2>s. Is this bad practice? If yes, I think I'm gonna turn down headings altogether... too restrictive...

Thanks