Both are possible, yes. "to" (meaning "in order to") more explicitly expresses purpose.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
Both are possible, yes. "to" (meaning "in order to") more explicitly expresses purpose.