Yes, you can sometimes use an Oyster card outside London, but not very far from London. You can't use it in Leeds, nor in other distant cities like Birmingham or Southampton or Glasgow. But some places near London, like Amersham, Watford, Hertford, Shenfield or Redhill do allow Oyster to be used on some services.