New master cylinder wont work??

Well being a new master cylinder it shouldn't have the problem of being dirty or rusted. but I could try that on the old one and put it back on the car and see if it starts working again?