The OS should adopt the correct resolution for both displays automatically, so it shouldn't be a problem. If it doesn't, you'll be able to change it manually (with a second display attached the System Preferences>Displays settings gain an extra window specifically for the second display). The only tip would be to drag the secondary display to the same relative location in the preferences as it is on your desk (that is, to the left, right, above or below the primary display depending on its physical position relative to your iMac) so that it makes visual sense when your mouse moves to the new screen.