amana washer keeps filling with water. won't stop

The water won’t stop filling could it be the pressure switch?:rolleyes: