Continuity mistake: In the opening sequence, the venetian blinds in Dixon Hill's office rearrange themselves between takes. They're intact after the shooting, but moments later, despite being untouched by anyone in the room, they're broken and have a huge gap in them. (00:07:00)
Continuity mistake: In Dixon Hill's outer office, Gloria's right arm goes from being up to by her side and back between camera cuts.
Answer: Yes. The doors to the holodecks can be locked when in use by anyone aboard the Enterprise so they couldn't be disturbed. However, high ranking officers like Captain Picard could override the doors as it's seen that overrides are in use even for the crews quarters. Even Barclay, when he's indulging in one of his fantasies could have the doors to the holodeck unlocked by an override code.