No, if any of the parties have found that the marriage is not legal then he/she can file the petition in court. The other party has the right to defend him and provide other respective documents too. Also, if the court sanctions the marriage as null and void but the other party don’t accept the decision then he has the right to file a petition on higher judiciary bodies.