According to the information provided in the Angular documentation:
Is it a problem if I happen to import the same module more than once?
No, importing the same module multiple times is not an issue in Angular. When multiple modules import Module 'A', Angular only evaluates Module 'A' once, the first time it encounters it, and does not repeat the evaluation process.
This holds true regardless of where Module 'A' appears within a hierarchy of imported NgModules. For example, if Module 'B' imports Module 'A', Module 'C' imports 'B', and Module 'D' imports [C, B, A], then when 'D' is processed, Angular evaluates 'C', which triggers the evaluation of 'B', and subsequently 'A' is evaluated. By the time Angular reaches 'B' and 'A' in 'D', they are already cached and ready for use.
Angular does caution against NgModules with circular references, so it is best to avoid scenarios where Module 'A' imports Module 'B', which in turn imports Module 'A'.
For further information, you can visit: https://angular.io/guide/ngmodule-faq#what-if-i-import-the-same-module-twice