Yup, technically not allowed, in practice never has been a problem for me. Depending on the destination, most hotels couldn't care less about the name on the reservation. Actually, booking a hotel under a false name has been a thing for the high-profiles anyway. Hotels get paid by Accor for the points you spend there, so most of them would rather not raise a ruckus and take the money than enforce this particular policy. Also, realizing (if they even can - e.g. if they ask for an ID) the guest is not the one booking only on arrival would put the front desk associate in a very awkward situation were they to deny the prepaid room...