Does calling dom manipulation functions from dom.js module in the index.js module count as logic and dom seperation?

I’m working on a Battleship game project and wanted to get some feedback on my approach to separating game logic and DOM manipulation.

Here’s what I’m doing:

In index.js, I manage the overall game flow, call functions from the gameboard, ship, and player modules for game logic, and also call DOM manipulation functions from dom.js to update the UI based on the current game state.

DOM manipulation (rendering the board, updating cells, etc.) is handled separately in the dom.js file.

The game logic (state, player actions, game flow) is managed in the gameboard, ship, and player modules.

So, in index.js, I’m coordinating everything, calling both the logic functions and the DOM functions from dom.js to handle the UI updates. Does this still count as a clean separation between game logic and DOM manipulation?

Would love to hear your thoughts!