Can I use a master cylinder off a car with disc/drum on a disc/disc conversion?

Just pull the residual pressure valve out of the drum side