In your first post you mentioned you had random misfire. Does this mean you retrieved DTC P0300? If so, that DTC is almost always caused by a fault in secondary ignition: Spark plugs, spark plug wires, distributor cap, rotor, ignition coil. Low fuel pressure can also set P0300, but usually there are other symptoms involved.
If the distributor is not installed correctly, (off one or more teeth) P1345 will set and/or the engine will not start at all, or possibly backfire while cranking. As FishFind mentioned, if you line up the timing marks as in the image that he posted, and the rotor points to the "6" on the distributor housing, and P1345 is not set in memory, you're good.
If there's a problem with the MAF sensor, it will set a DTC for it. No DTC, no problem.
If you replace the distributor cap, rotor and plugs, (typically good for 100K miles) don't waste your time and money on aftermarket stuff, use AC Delco. Same with plugs, AC Delco double platinum only. Autolite Professional Series plug wires have better specs than AC Delco at 1/3 the price.