Are the 2 cameras of the iPhone 4S of the same quality?
No, as noted in Apple's specifications, the front camera is VGA (640x480), whereas the rear camera does 5 MP stills and 1080p video. This is confirmed in iFixit's teardown of the 4S.