Hello, mrbkiter - and welcome to English Forums. An infinitive clause can often/usually substitute for a gerund phrase, but the gerund is usually less awkward and certainly more common in the subject position. The general difference between them is that the infinitive suggests potentiality while the gerund suggests activity, so keep that difference in mind when you choose.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.