Can I restrict a certain shipping method based on products added to cart?

Yes, the Shipping Restrictions extension allows restriction of a particular shipping method when a certain product is added to cart.

See more details on Shipping Restrictions page
Rate the answer?