No. While filing a restraining order grants you and your child protection from your partner, you must still go through the divorce process to legally finalize your separation. To learn more about the processes and options available to you, you should contact an experienced family law attorney. They can help you find a solution that is safe for both you and your family.