Question Inbuilt camera exchange between phones

I have 2 phones: Samsung Galaxy S Plus (I9001) and Samsung Galaxy Young (S6312).

I9001 has 5 MP camera, and S6312 has 3.15 MP camera.

I accidently broke the screen of I9001 and its repair cost it very high. Hence the phone is useless.

I was wondering, if I can take out I9001's camera and place it in place of S6312's camera, would it work?
My main concern is it shouldn't fry up the circuit board of S6312.