Yes. If the wait between your booking date and appointment is at least 12–18 months, you can file a court petition. This clearly demonstrates the consulate won’t complete your procedure within the legally required two-year timeframe. You must provide proof of your scheduled appointment date.