Create sub account for Income and COGS

Hello,
I would to ask you about COA, actually when we create a new company profile the stand COA will automatically create but if I want to make income with COGS then I create more sub COA below income and COGS account.
The question is if I make COA like this is and how possible to manage transactions?
image
image