Yes. That's why I said to check for spark when the motor dies when it's hot. A failed coil doesn't affect the starting system at all. You can crank the motor all you want but if the coil failed when it gets hot, you'll have no spark.
It's easy to check and can eliminate at least one possible cause. Start by checking if you have spark when the motor is cold. ( You should since it starts) Then check again immediately after it stops running.
If no spark when hot, replace the coil. If it still has spark then there's something else going on. But remember, if you have fuel and air, compression and spark, in the correct order, the motor WILL run.
To check for spark, remove the spark plug and reconnect it to the spark plug wire. Hold the electrode to the cylinder head. Crank the motor and look for a blue/white spark
Mad