Setup limited access to records?

Is it possible via scripting to do the following?  Upon post-read of record, check a particular value on the order, then depending on that value, potentially 'kick' the user out of the record (prevent them from viewing it)?