Can dreams really give me phobias? Or was it always there only my dreams let me know of it?

I never had phobias of heights, and slimy mold until I had a nightmares of them....

Similarly i had dreams that gave me my favorite things...for example, I could care less for care bears....until I had a dreams about lucky bear and all of a sudden now I have this obsession with lucky bear...?!

Is there a name for this ? Has this ever happened to you? Tell me about it.