yeah, the diode arrow should be towards the pin.
since the speaker is an inductor, when it will be turned off, it will create a big potential difference with respect to ground at the pin, and it may damage it. the diode forces the current through the speaker again.