Yes, they could, but there could be quite few other things too, like failed parts of the ignition system, vacuum leak, worn cam shaft or other mechanical damage. I'd get it diagnosed before start to replace good, expensive parts.
Zee
RepairPal Certified shops can diagnose and repair your 1997 Nissan Altima. They provide transparent pricing with a minimum 12-month or 12,000-mile warranty on repairs and services.