Yes, but, I believe all file handles will be closed by all modern operating systems (i.e. all Julia supports). You might have been using an outdated operating system.
So Julia wouldn’t need to do anything, but you might miss unflushed data, at least if on segfault. So it depends on what you mean by unintentionally. There was a recent thread about caching CTRL-C.