Not necessarily, if the cause of your problem is a repressed memory (one that you are unable to remember consciously), then bringing it back into conscious awareness can help you to view the problem from a different perspective and so feel differently about it. However, sometimes things that happen in the past create a subconscious belief.  In hypnosis, the belief can be changed to a new positive belief without actually having to remember where it came from.