Yes, the Magento 2 Shipping extension enables you to either assign available shipping methods to any products or restrict the shipping methods by the products added to the cart. You can achieve this using shipping rules.