sort of.
the brain has the computational power of 9000+ and does a lot of work in predicting patterns. fluid spacial dynamics (can i flush the toilet without it over flowing), parabolic projectile tracking with opposing air friction (Frisbee), estimation of launch velocity (throwing a ball). and none of that seems strange. So I say that while sleeping your brain could be running a diagnostic on the probable scenarios that will play out in the future, like a weather forecast. and like a weather forecast, if your life has been the same day in day out, then it becomes easy to predict which things will stay the same and which things have the greatest potential to change.
example.
suppose you work an office job and have a half hour commute. on a regular basis you will come across traffic and have surface level conversations with your co workers. your dream is; one day you go to work with no traffic and arrive early, you talk with your boss and find that they have hired a new secretary, she is starting that week, and her name is sherry. when she arrives later that same day you are surprised and decide to introduce your self and have a conversation about the traffic and it works its way around until you find out that she is originally from a small town near where you grew up. you wake up and figure its just one of those things.
Two weeks later it happens was it a prediction??
so you missed traffic, (maybe you left 5 minutes earlier without realizing and beat some of the rush). you talk to your boss (because you see them no other reason), they mention a new hire(it is that time of the year), it's a secretary (it always is), her name is sandy (seems familiar), when you see her you talk to her (because you're polite and your day has been going well), it turns out that she's from a town near where you grew up (there has been a book published on the idea that you are highly likely to meet people from where you live and from your past because people you associate will tend to make similar life decisions)
suddenly every thing pops into place and you swear you had a dream about this exact thing happening before.
tl;dr
it's a numbers game b/c your head is a massive computer, that gets bored with the mundane.