The answer is YES. You can drop your petition. But, for the betterment of both parties and your child, it is better to write and submit to the court a written agreement on what terms and why both are agreeing on a nonsuits solution.