Potentially yes, but "commit to" (in the usage you're proposing) feels more formal, weighty or long-term, and may imply some kind of formal agreement. It would not be used for a minor everyday matter.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.