Continuity mistake: When Wesley Crusher and his school chum accidentally hit Picard with a snowball from the holodeck doorway, it makes a huge wet spot on the captain's left shoulder. However, when Picard tells them "Don't let it happen again," as he turns to walk away, the wet spot is now suddenly dry. (00:36:00)
Continuity mistake: Watch when Geordi on the bridge calls up Dr. Crusher in Sick Bay. There's a white-haired medical assistant working on someone behind Geordi. Then when Dr. Crusher responds to Geordi's page, the same assistant is down in Sick Bay with her. Then they cut back to Geordi and the assistant is back up on the bridge again.
Continuity mistake: When Beata tells Riker that he attracts her like no other man, her hand disappears from his neck.
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.