"Once upon a time" is traditionally used at the start of children's stories, yes. It is also occasionally used ironically for humorous effect in relation to anything in the past, for example "Once upon a time, I was young and stupid too". ) BEFORE just means at some time in the past.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.