If you did that and never actually went down while staying in bounds in the endzone the whole time, I'm not sure what they would do.
But if the ball is outside the pylon when you go down in the endzone or OB in the endzone, they won't call it a TD anymore.
A few years ago they would have (because of the infinite goalline), but it changed at some point in the last 2-3 years.