It depends on whether they've asked and received permission. The [Trademark Guidance](https://stackexchange.com/legal/trademark-guidance) says:

> ### Merchandise/Manufactured Items
> 
> We generally do not permit use of our name or logo on merchandise.
> 
> **Do** contact Stack Exchange Inc. with a detailed proposal if you would like to request an exception.  
> **Do not** use the names or logos owned by Stack Exchange Inc. on any apparel or merchandise without our permission.

If you believe someone is using the name or logo without permission, you may [contact the legal team](https://stackexchange.com/legal/contact) at [email protected]  
If you are reading this answer in the context of a site scraper, please don't contact the legal team and read [this](https://meta.stackexchange.com/questions/200177/a-site-or-scraper-is-copying-content-from-stack-exchange-what-do-i-do) instead.