Soundoutput on Raspberry PI?

I was wondering if it’s somehow possible to get the sound (jack) output working on a RPI with HASS installed onto it?
It would be handy (at least for me) to get a sound notification when the RPI is finished starting up, or maybe for other instances.

It could also be used as a signal when a configured door sensor is activated or maybe for smoke detection or alarm usage?