Can dreams be a good source of inspiration for a book or a movie?

I have no writing skills but I thought about writing a screenplay based on stuff from my dreams. Since my dreams are so weird I could get creative with horror or comedy.
9 answers 9