The noun yarn can be countable or uncountable.
In more general, commonly used, contexts, the plural form will also be yarn.
However, in more specific contexts, the plural form can also be yarns e.g. in reference to various types of yarns or a collection of yarns.