It depends on whether they've asked and received permission. The Trademark Guidance says:
###Merchandise/Manufactured Items
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 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 instead.