Yes, Julius Caesar's own writings on his military campaigns—including operations in Spain—are primary sources. However, there's an important clarification needed about which work covers Spain.
Caesar's Commentarii de Bello Gallico (Gallic War) covers his campaigns in Gaul (modern France/Belgium), not Spain. His Spanish campaigns—particularly the 49 BC campaign against Pompey's lieutenants Afranius and Petreius at Ilerda, and the 45 BC campaign culminating at Munda—are recorded in Commentarii de Bello Civili (Books 1–2 for 49 BC; the Munda campaign is covered in the continuation often attributed to his lieutenant Aulus Hirtius).
As a primary source, it provides invaluable data on Roman military tactics, logistics, and Caesar's leadership. But historians read it critically: Caesar shapes the narrative to glorify himself, minimize failures, and legitimize his cause. Corroboration with archaeology, coins, and other authors (e.g., Cicero's letters, later historians like Appian) is essential.
Caesar's Civil War commentaries are a primary source for his Spanish victories. The Gallic War is a primary source for Gaul—not Spain. Don't conflate the two.