I'm not sure what you mean.
Either 1. Would you have studied something different if you had had / had you had the chance/opportunity to do so?
Or 2. Would you study something different if you had the chance to go back in time?
Omitting if is more formal.
CB