Revealing mistake: When the force field is activated in the Jeffries Tube, we only see the flash of light from off-screen. The effects team neglected to add the force field effect.
Continuity mistake: When commander Data is reciting the code to lock the rest of the crew out of the computer, he states the code '1-7-3-4-6-7-3-2-1-4-7-6-C-3-2-7-8-9-7-7-7-6-4-3-T-7-3-2-V-7-3-1-1-7-8-8-8-7-3-2-4-7-6-7-8-9-7-6-4-3-7-6-LOCK', but when the computer screen is shown the code reads '1-7-3-4-6-7-2-1-4-7-6-C-3-2-7-8-9-7-7-7-6-3-T-7-3-2-V-7-3-1-1-7-1-8-8-8-7-3-2-4-7-6-7-8-9-7-6-4-3-7-6-LOCK.'
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.