Yes, this is possible. First, you need to save the reference to the current window.
String parentWindow= driver.getWindowHandle();
The after having clicked the link, you need to switch to the other window.
List<String> allWindows = driver.getWindowHandles();
for(String curWindow : allWindows){
driver.switchTo().window(curWindow);
}
This is where you perform operations on the new window, finally closing it with
driver.close();
and switch back to the parent window
driver.switchTo().window(parentWindow);