This depends on the particular airline program, but in most cases you will not earn frequent flyer miles or loyalty points for your companion’s flight.