No, pee smell does not go away when it dries; in fact, it often becomes more pungent as uric acid crystals and bacteria persist and intensify the odor.
Enzymatic cleaners, vinegar and baking soda combinations, and hydrogen peroxide solutions effectively remove urine smell from carpets by breaking down odor-causing compounds.