Should I use do_action in the header file?

In my development experience.
get_template_part() is better way to maintain In the future.

https://developer.wordpress.org/reference/functions/get_template_part/