Yes. It can
Each time a tooth is exposed to milk, it is exposed to about an hour of acid on the teeth.
Multiple exposures of acid on teeth will cause cavities. If a child sleeps for seven hours per night and that child has access to a bottle of milk, the teeth could well have seven hours of acid exposure per night! limit the number of exposures to the acids. No bottles/sipply cups in bed.