97 Corolla (sometimes) won't start

Is the solenoid separate from the starter itself, or is this all one unit?