Yes. When you add a product option (for example, Size), you can manage specific variants (such as Small vs. Large) and set unique stock levels for each one.
To do this, go to the product’s Options tab and use the Pencil icon to edit options and manage variants.