Yes. You need to bookmark the area for which you want the tble of contents and add a switch to the TOC field to reflect that. See
A TOC for part of a Document.
That will give you more information about this field and its switches including the bookmark switch.
More TOC references:
Generating a Table of Contents - Part of a Documents
How to create a table of contents in Microsoft Word by Shauna Kelly