Yes, it is completely within the confines of the law to get your divorce papers online. If you were to seek the counsel of a lawyer in your area, the lawyer would ultimately prepare the exact same forms that you get from an online divorce service. The primary difference would be cost; thousands of dollars for a lawyer versus couple hundred dollars to do it online.
Remember, these forms vary from state-to-state and can be rather complex in nature as each state maintains its own unique divorce laws. That is the advantage to using a service online. They regularly keep track of ever-changing divorce laws and streamline the process of generating your forms. This ensures the forms you receive are accurate, up-to-date and court-ready.