If the commitment has a short duration (e.g. a 1 week vacation, or a doctor appointment), that's totally fine. You just need to make sure that you properly communicate your schedule with your coding partner so that you can plan around it as a team (e.g. your coding partner will dedicate that week to advance some material from the curriculum or to refactor and improve some project you already finished).

Did this answer your question?