Yes. Like most verbals, the infinitive and the present participle, or the gerund, have the same meaning. But some grammatical situations take only one or only the other, in the case of some specific verbs.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.