If brake fluid or transaxle grease and it got on the brake shoes (drums) or pads (disc) then the linings need to be replaced as they absorb the fluid and won't stop car properly.
If its just a loose bleed valve or a loose hose fitting - it may not have ruined the brake linings.