Basically correct, but you need to set initial balance for owner also and from the beginning, the balance of owner equal to total supply. Total supply is nothing if you dont handle the token balance for each account/address in your smart contract.
for more detail, you can refer to openzeppelin template code