No, you would use a tax_query. The tax query you tried requires an array of term ID values by default. To use slugs you would need to include the “field” argument in the tax_query. https://developer.wordpress.org/reference/classes/wp_query/#taxonomy-parameters