the simple answer Yes & No.
whiskey will only mature in the barrel, this happens when the whiskey spirit takes on the flavor charecteristics from the wood that the barrel is made from. The spirit also slowly evaporates approx 2% per year, this means that the volume in the barrel gets less the older it is and the flavors get more concentrated & complex. If the distiller choses to make this a single whiskey then the amount that is available to sell will decrease year by year in each barrel therefor the price will rise accordingly.
If the distiller then either blends the barrels to get a consistant flavor or bottles the whiskey depending on the length of time the spirit was in the barrel, this is why you see ages on single not blended whiskeys eg 12 yrs etc.
when the whiskey is bottled it loses its ability to gain any flavor as the glass has none or evaporate so it stsys at the flavor profile that it had when it left the barrel.
Wine on the other hand can and does continue to change it's flavor after bottling. Tannins (bittering agents )slowly mellow away and flavor componants inside the wine can come forward. Depending on the type of wine it can be stored from a few to many years and unlike whiskey can spoil after a period of time.