I need to show the same object in OpenGL in two different viewports, for instance, one using ortographic projection and the other using perspective. In order to do this, do
yes,
and you should also change the scissor settings to have a clean separation between the two views if they are in the same window.