You can. Just be aware you may need to select the output in your computer’s sound settings, because it may default to your monitor. It could do that(even if the monitor doesn’t have speakers, because a graphics card might register audio out through HDMI anyway.
A friend of a friend’s house burned down due to a laptop overheating. His daughter left it running on the bed and the fluffy comforter blocked all the vents. This was maybe 15-20 years ago, and at the time, it wasn’t unheard of. I wouldn’t trust any device to turn itself off, especially lives are on the line.