The only way to know for sure if one is permitted to transfer the license to the software (_any_ software) is to read the license agreement. Many packages indeed specify that it is perfectly legitimate to do so provided certain conditions are met, which typically include no retention of copies of the software or documentation, and that the subsequent licensee agrees to the terms of the original license.