Yes, though the answer depends on what you're counting.
Back in 1999, an anime feature called Sonic the Hedgehog: The Movie was released in Japan, and it's commonly referred to as the "Sonic OVA." It was later dubbed for Western audiences and is the closest thing to a traditional Sonic film from that era.
Sonic X, which people often bring up, isn't a movie at all — it's a television series. And the live-action Sonic films arrived considerably later, with the first one released in 2020.