Is it fair to be kicked out if you fail the LPC?

Should a law firm be able to terminate your training contract if you fail a module on your LPC?