Yes, you will be able to dream again, people just go through spells of not remembering their dreams.

I think you had sleep paralysis.