Do H2 headings need to be unique?

On a cooking-themed project, when scanning the site through a frog, the amount is more than 200 thousand. different pages with duplicates in h2. These takes are different (i.e. not…