Direct answer
Do not count it as a touchdown just because a player enters the end zone. Check the operator’s stat source and conversion exclusions before treating the play as passing, rushing or receiving yardage for a standard prop.
What to check
Keep the official scoring line and play description. A successful try and the touchdown immediately before it are separate events.