Yes. There is no other way. Typically your boarding pass will be scanned before you can embark. If that's not the case, you will have a tough time getting the program to credit your account. Even paying for a ticket in full and not flying will result in an empty mileage account.