Maybe, but could be there is a connection issue somewhere. Either a harness plug/receptacle, ground, or wire issue in the harness.
Or, the ecm has failed internally. Not likely but possible
At this point your best interest is to inspect connections (especially those related to ignition)...