No, you cannot conditionally hide the header row.
You could:
1. Put the entire repeating table within a section, and add the condition to the section to hide it entirely.
2. Use a repeating section instead, and create your own "header" table manually (within a section most like, so that you may hide it).
Good luck!