if the agreement has provisions in place to allow an employee to pay and leave before the three month period then that should be it
but it all depends on the agreement and to what extent they're willing to enforce it
most employers wouldn't chase a former employee around just because they left...