Yes, you can lock a file using the ‘Get Info’ panel. When a file is locked, any attempt to modify or delete it will require confirmation.