Yes, you can play against bots in Battlefield 2. In single-player mode, bots fill the match, which makes it a great way for newcomers to practice.
As a bonus, even the bots on the hardest difficulty are far easier than real players in multiplayer. It is a low-pressure way to learn the maps and get comfortable before jumping online.