Conditionally Locking a Cell

Hi everyone, just wondering if there is a way to lock a particular cell based on values entered in other columns for the same row.  For example, in Column 3 - if the user selects "A", then lock Column 4 from being entered, if the user selects "B", then allow edit in Column 4 - all in the same row.

Thank you in advance for your help.

Answers