I mean just like any employer on the planet, they have the right to introduce random drug tests and if the employee fails they fire them. Given this is a sports industry, PEDs would certainly fall under that.
Not going to pretend I know the ins and outs of a football contract, but I would be very, very surprise if there isn't anything about taking PEDs.