Use stereoCalibrate method to find extrinsic transform between two different cameras

I have two different cameras and what I care about is the transformation between them. I do not need two identical cameras to do stereo vision. I want to use the stereoCalibrate() to find the transformation. I want to know if this method apply to the two cameras with different focal length and resolution?