Based on the level of information here, this is fine, and it's standard practice in PHP to divide parts of your page into different files. Major PHP content management systems like WordPress do this.
Having sections of the page like header, menu, and footer in their own files is commonly used, as it allows you to easily reuse that code on multiple pages.
If you have a section that is only used on one page, and will only ever be used there, a separate file is not needed. But even then, it isn't clearly harmful. It may helpfully divide your code into more manageable chunks.