If it is not used in the file .h, then there will be no difference in success / failure of compilation.
However, it is recommended that you include include for header files that you only need to implement in files .cppfor the following reasons:
- - , .
A.h B.h , B.h include A.h. .- , ( , , ).