Can a cookie identify a device?

Yes, a cookie can identify a browser or device.

Cookies are small files stored on your computer by websites you visit, and they’re designed to help the site remember things about you as you move from page to page. They identify the type of device (e.g. device type, OS, version) that’s accessing the site.