Yes, it's nominally an ashtray. I say nominally because they were seldom used for that purpose. Yet I do recollect my mum in the sixties using what must have been a Holmegaard piece for an ashtray. As Craig pointed out in another post, cigs couldn't hurt the glass, but they didn't do much for my mum's health.
David