Whether this is a valid way of doing multiplayer

I plan to use the DOTS NetCode to make a multiplayer game, in that the only thing stored on the server side is variables, such as the position of each player, that will be synced to all the clients. Is this a terrible idea and are there not much more difficult but significantly better ways of going about this?

Most multiplayer games do it that way, some do more client controlled data or a mixture.