That depends on whether or not the agreement constitutes a contract or not.
If it does, they can sue you for breach of contract.
If it doesn't, all they can do is accept your resignation immediately and refuse to pay you for the remaining notice time.
I can tell you, it is unlikely that the agreement is actually a contract. However, you will need to show it to a local attorney to be absolutely certain.