Yes. You can migrate categories and subcategories. However, in Shopify, products will be located under collections only. So all categories and subcategories from the source store will change to collections in Shopify.
If you need more help, please do not hesitate to contact us!
Enjoy more interesting information about shopping cart at our Blog!