Dryer burner goes out,wont heat

Gas dryer ignitor and burner comes on the first time you use dryer. then burner goes out and ignitor will come back on with a clicking noise but the burner does not light. After the first time of burner coming on ,only the ignitor comes on . does it sound like bad coils. Thank you