Simple present tense: I go, she goes. Present progressive: I'm going, she's going. Present participle: going Gerund (present participle form used as a noun): Going is easier than coming back.
Both of your sentences are fine. Both have a noun object of the preposition 'to'.