Ester as a side product in the synthesis of bromoalkane from alcohol. Is it correct?
Technically it could form, but it would be hydrolyzed. If it did form, it would be in negligible quantities. Lots of other stuff could form, and they do, but in miniscule amounts ... bromine oxidized the alcohol to the aldehyde. The aldehyde undergoes aldol condensation. Another alcohol undergoes elimination. The compounds  react in a hetero diels-alder. So dihydropyrans can also form ... Yes, but not in quantities that are observable.