If you book an airline through a third party, the airline will most often allow you to include your frequent flyer status. Often the third party will neglect it, so be sure the airline has your information. It makes things much more convenient.
It is important you realize that if a third-party books your air flight, you are not the customer of the airline. If something goes wrong with your flight, the airline may not be able to help you.