Does anyone elses baby do this?

My 4 month olds crib is beside our bed. During the night he'll whine/cry a couple times in his sleep. Usually I just put his pacifier in and he goes back to sleep. What does this mean. Is it normal. Does it stop