Yep.
Sometimes if you fall asleep with just a TV going on in the background it can have a direct effect on your dream.
Your physical ears are still working while you dream.