Adding Product to Main Category automatically

When adding a product, I select the subcategory (Computers>Desktop), then I have to go to Secondary categories and add to the Category as well (Computers).

Is there a way to automatically add the product to the main category?

For example, let’s say I enter “Dell computer”, it will show under “Desktop” but I also want it to be listed if the user clicks on “Computers”?

i think you need to use secondary categories on the product page

thats the only way