Newbie Question: Make a servo turn 90 degrees and stop.

I thought this might do the trick, but no.

Servo myservo; // create servo object to control a servo
// a maximum of eight servo objects can be created

int pos = 0; // variable to store the servo position

void setup()
{
myservo.attach(9); // attaches the servo on pin 9 to the servo object

}

void loop()
{
myservo.write(0);
delay(15);
myservo.write(120);
delay(1000);

}