These should represent distinct sections and subsections of the main topic.
It’s important to maintain a logical hierarchy to your content. The main title of the page should be designed as H1, while subsequent headings (H2,H3 etc.) should follow. These should represent distinct sections and subsections of the main topic. Make sure you also include the relevant keywords in each section to reinforce topical relevance. However, don’t overdo it, as this can harm, rather than help, your SEO.