What would cause this. When i put my foot on the pedal its rock hard car will stop slowly.

Is it the master cylinder that would cause this?