Yes, you can book a ticket for someone else too. For that, you will have to provide their personal details while booking the flight.