Yes, you can use a controller for Battlefield 2 (2005) on PC.
It's playable and fun casually, but mouse/keyboard remains competitive standard.