No I'm pretty sure he would not like that, and neither would you if he did it.
Have you ever been depressed? Maybe you're anxious about something or you have a missing spot in your life. Find something to fill whatever is missing; go out and do stuff or maybe find a hobby to block this feeling.
You are thinking about him in the back of your mind, so he is appearing in your dreams.