Are all solenoids the same |selecting a solenoid valve

Are all solenoids the same |selecting a solenoid valve