Yes, it is very much possible.
On the active worksheet press Ctrl+A --> Next press Ctrl+1 --> Protection tab --> Uncheck the "Locked" option. Press OK. Next, select the cell where there is the formula and you want to hide that formula. Again press Ctrl+1 and go to Protection tab --> Check the "Locked" & "Hidden" option and finally protect the worksheet with a password.