No. It would not. The court has no right to decide if your religion is legitimate or not. The IRS and the government does recognize certain religious _organizations_ (e.g. churches for tax exemptions), but the state cannot pass any judgement on the underlying belief system when they recognize these institutions. This is what the Establishment Clause clearly protects.
Recognition of your religion would likely be determined at the time of your trial.
Should that be the courts right? I would argue no.