Yes, it is possible to password protect the DFB.
Open the Project Browser and the Derived FB Types folder.
Right click on the DFB you wish to protect and select "Properties".
Select "Protection" and chose from the available options.
Provide a password and confirm it when prompted.
Note: Use the same process to remove the password in order to edit the block.