To answer your question - Yes.
To do it - In the VBA window, click on tools - name of yourprojectProperties.
Another window will open. Click on the Security tag. This will enable you to set a password to protect your code with having to use an mde file.