Could be but unlikely both coils would go at the same time. Could be a fuel tank not venting. Could be restriction in the fuel supply. Have diagnose the problem. When is stops try spraying gumout carb cleaner in the carb. If it starts fuel problem if not ignition problem. Then try unpluging the ignition kill wire to make sure it is not in the mower. There where the starter is there two wires that plug in to the engine wiring. One is green fuel solenoid the other is black ignition kill wire, unplug the black wire and test for fire again.