You can change the name on Lufthansa flight tickets, but the airline typically charges you an administration fee. Some Lufthansa will allow you to change the name on your reservation / booking because of a spelling mistake but won’t allow you to transfer your flight to somebody else.
Source: https://www.flyingtrek.com/name-change/lufthansa-airlines