Yes. It depends. Often prior existing rights or uses are exempt from subsequently enacted legislation to avoid a takings or inverse condemnation claim. It just depends on the situation. It is a concept not a clause in a contract or deed.