It works for as long as you manage to keep your memory in your head for over 5 minutes or so. It transforms from volatile short term memory to long term memory and even though you think you're forgotten it, you don't have.

I use both methods, because sometimes it's hard to remember the general topic of the dream and there's where the dream journal comes in handy.