Check the top-left corner of the screen — the game tells you which controllers it supports.
That indicator is the quickest way to settle it rather than guessing, since supported devices are listed there before you commit to a control scheme.
If the Classic Controller is not listed, a third-party controller with a standard mapping is usually the next best option. Racing games in this series respond well to analogue triggers, so the main thing to look for is a pad with smooth, pressure-sensitive input rather than a digital d-pad.