Verified Answer :

yes it is it is your dream

Yes, this happened in the night and it is possible that the narrator was dreaming this encounter with the raven.

Hope this helps :)