New to processing---------motion tracking

i have modified this code. is this true for 2 servos?

#include <Servo.h>

Servo xeks;
Servo yeks;

int xPos=0;
int yPos=0;

void setup() {
Serial.begin(9600);
xeks.attach(3);
yeks.attach(6);

}

void loop() {
if(Serial.available() >0)
{
xPos=Serial.read();
yPos=Serial.read();
}
int xServo = map(xPos, 0, 320, 20, 70);
int yServo = map(yPos, 0, 240, 20, 70);
xeks.write(xServo);
yeks.write(yServo);
}