Like all contracts, gym membership contracts create a binding agreement between you and the gym, which lasts until the contract ends. The gym might be able to sue you to collect its membership fees if you stop paying before you are legally allowed to.